Reputation: 13
I need a script to change the value of a DWORD to 0 in Windows 7 Home Premium in order to prevent Microsoft Security Essentials wizard from deploying after sysprep. I know how to work that with sysprep and just need the script. I've tried a couple vbs and played around but without success.
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Security Client
DWORD: OOBE
Change value to 0
Please let me know if there is a resource and I can just do this myself. I'm new to scripting and am not intending on burdening stack wizards with dumb questions.
Upvotes: 1
Views: 10030
Reputation: 1
PowerShell can do this
sp 'hklm:software/microsoft/microsoft security client' OOBE 0 -t dword
Upvotes: 0
Reputation: 3179
In VBS try this test:
CreateObject("WScript.Shell").RegWrite "HKLM\ABC", 0, "REG_DWORD"
The result should be:
Be sure you run the script with elevated rights.
Upvotes: 2