I am trying to modify the setupca.vbs script for settung up a CA in windows
2008 core. The script does not include the option for validityperiod, so I
am trying to add it to the script. When I call the function
g_oCASetup.SetCASetupProperty, it returns the error: "Error Info:
-2147019001: CCertSrvSetup::SetCASetupProperty: The actual data type of the
property did not match the expected data type of the property. 0x80071707
I was passing it as a string - we we tried changing it to a number - same
error. I put the number directly in the function call - same error.
I'm stuck - any ideas?
The specific call is:
Call g_oCASetup.SetCASetupProperty(SETUPPROP_VALIDITYPERIOD, ValidityPeriod)
SETUPPROP_VALIDITYPERIOD is set to 5 at the start of the script.
ValidityPeriod is set to a number (10) through the command line. I've tried
this value as both a string and integer (by putting it through cint()).
I'd post the whole thing here, but the limit for messages is 30k. . . This
was added to the script at: http://blogs.technet.com/pki/archive...nd-2008r2.aspx