|
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
|