Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - SetupCA.vbs - added ValidityPeriod - getting did not match data t

Reply
 
Old 10-16-2009   #1 (permalink)
CaryBarker


 
 

SetupCA.vbs - added ValidityPeriod - getting did not match data t

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
(WIN32: 5895)"
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


My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
-match V1 vs V2 PowerShell
Trying to -match across lines of a .txt PowerShell
Filenames Do Not Match Vista file management
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY Vista General
Product key does not match... Vista installation & setup


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46