mldaigle1
asked on
VBS - Detect OS and Rewrite Reg Key value
Hi,
I need help to create a VBS script that will detect my OS and write the following reg key:
if W7:
REG ADD "HKLM\Software\Wow6432Node \Microsoft \SMS\Clien t\Client Components\Remote Control" /v Enabled /t REG_DWORD /d 1 /f
Else REG ADD "HKLM\Software\Microsoft\S MS\Client\ Client Components\Remote Control" /v Enabled /t REG_DWORD /d 1 /f
good in batch file, but in VBS, i need your help.
I need help to create a VBS script that will detect my OS and write the following reg key:
if W7:
REG ADD "HKLM\Software\Wow6432Node
Else REG ADD "HKLM\Software\Microsoft\S
good in batch file, but in VBS, i need your help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi becraig,
Just needed to adjust few things in the code and it worked like a charm. Thanks a lot!
:)
Just needed to adjust few things in the code and it worked like a charm. Thanks a lot!
:)
Great stuff glad to help.
ASKER
I agree with you, but since we still have more then 20k pc with XP, vbs is still the solution for now. Let me try your vbs monday and i'll get back to you.
Thanks for the command lines.
:)