John Darby
asked on
CMD to VBS
Greetings,
is there an easy way to port the below CMD commands into a simple VBS script?
Thank you,
JohnD
reg add HKLM\SOFTWARE\Microsoft\Cl ickToRun\O verRide /v DontVerify /t REG_DWORD /d 1 /f
reg add HKLM\SOFTWARE\Microsoft\St rongName\V erificatio n\*,71e9bc e111e9429c /f
reg add HKLM\SOFTWARE\Wow6432Node\ Microsoft\ StrongName \Verificat ion\*,71e9 bce111e942 9c /f
reg add HKLM\SOFTWARE\Microsoft\Of fice\Click ToRun\Conf iguration\ /v UpdateURL /d http://officecdn.microsoft.com/pr/b61285dd-d9f7-41f2-9757-8f61cba4e9c8/ /f
net stop ClickToRunSvc
net start ClickToRunSvc
start /d "C:\Program Files\Common Files\microsoft shared\ClickToRun" officec2rclient.exe /update user
is there an easy way to port the below CMD commands into a simple VBS script?
Thank you,
JohnD
reg add HKLM\SOFTWARE\Microsoft\Cl
reg add HKLM\SOFTWARE\Microsoft\St
reg add HKLM\SOFTWARE\Wow6432Node\
reg add HKLM\SOFTWARE\Microsoft\Of
net stop ClickToRunSvc
net start ClickToRunSvc
start /d "C:\Program Files\Common Files\microsoft shared\ClickToRun" officec2rclient.exe /update user
And you can use other vb specific methods to edit the registry / start and stop services... but they would turn the single lines of code you have into several lines of code - not "simple"
ASKER
Thanks Lee, I need to add a digital signature is the reason
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Wow; I am definitely the student, here. Thank you for your splendid instruction. oBdA, you are my favorite rocket scientist...truly, thank you for your help and guidance!
JohnD, the Wandering PM
JohnD, the Wandering PM
Oh, just noticed that I left my test "ACME" in the registry paths above, but I guess you found it; sorry for that.
ASKER
No Worries, I found it :)
Set oShell = WScript.CreateObject ("WScript.Shell")
oShell.run "cmd.exe /C insert your commands here"
Set oShell = Nothing
But I would ask WHY turn it into VBS?