Hi there,
I haven't used the SetBinaryValue method that much and I can't test it out just yet...
http://msdn.microsoft.com/
But, would it be easier to write a .reg file with the script, and include your binary string in that reg file, then use the Run method of the WScript.Shell object to run
regedit / s <regfilepath>
Would that work?
Regards,
Rob.
Main Topics
Browse All Topics





by: ServerManagementTeamPosted on 2009-06-29 at 17:51:08ID: 24741394
I have made a bit of headway with this and I can enumerate the PST files that match a criteria. However, I am now stuck on writing the translated value back to the registry. Code snip below
,00,73,00, 74,00,5C,0 0,54,00,65 ,00,73,00, 74,00,2E,0 0,70,00,73 ,00,74,00, 0,00,
Example output below
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
D:\Mail\Test.pst Does not need to be remapped
PST Found at location M:\Test\Test.pst
Translating occurence of M:\ to P:\ - New location is now P:\Test\Test.pst
Translating P:\Test\Test.pst To HEX value to add to the Registry, new value is 50 3A 5C 54 65 73 74 5C 54 65 73 74 2E 70 73 74 0
50,00,3A,00,5C,00,54,00,65
Select allOpen in new window