Click here to get back home

certificateauthority.view issues-automating cert revokecation

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
certificateauthority.view issues-automating cert revokecation jhogan 06-21-2007
Posted by jhogan on June 21, 2007, 10:41 am
Please log in for more thread options
I am trying to write a vbscript to revoke certs from our 2003 cert
server(certs are not stored in AD) when people leave the company, but
not having much luck at it. We have over 30k of certs so using the
gui is slow and painful. I have tried every example I can find and
always get the same error. Here is the simplest script that gives
the
error:

Dim objView


' Instantiate the view object.
Set objView = CreateObject("CertificateAuthority.View")


' Open a connection.
objView.OpenConnection ("test-build\test.com")
Set objRow = objView.OpenView
x=objrow.GetMaxIndex


' Use the object as needed.
' When done processing, free the object.
Set objView = Nothing


and I get:
C:\tech\cert6.vbs(9, 1) CertificateAuthority.View.CEnumCERTVIEWROW:
CEnumCERTVIE
WROW::GetMaxIndex Catastrophic failure Unexpected method call
sequence. 0x8000ff
ff (-2147418113)


Please let me know what I am doing wrong.


thanks!


-bradk


Similar ThreadsPosted
2K3 Cert Svcs gives invalid policy error on OpenSSL gen'd cert req June 4, 2007, 1:56 pm
Requesting Code signing cert from cert services November 4, 2005, 12:11 pm
Security event view April 20, 2006, 1:04 pm
View effective permissions June 22, 2006, 4:19 am
Where to View Machine Certificate? November 1, 2006, 2:25 am
Not able to view secondary hard drive January 11, 2006, 9:53 am
Permission to View Event Viewer June 6, 2008, 9:11 am
Allow non-Administrator to view and terminate processes for all users July 21, 2006, 5:56 pm
unable to view configuration from Local Security Policy June 21, 2005, 10:07 pm
CA cert renew July 18, 2007, 9:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap