-
Notifications
You must be signed in to change notification settings - Fork 326
Open
Description
I'm using SCCM with MDT integration, added a 'run command line' task to run this script. Initially it was failing saying 'expected Then at line [whatever]'. I threw in few Thens and it was happy, but now it fails saying.
D:_SMSTaskSequence\WDPackage\scripts\Config-DisableWindowsStoreUpdates.wsf(45, 4) WshShell.RegDelete: Invalid root in registry key "HKEY_LOCAL_MACHINE\NewOS\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate\AutoDownload".
It fails here:
If oEnvironment.Item("_SMSTSInWinPE") = "true" Then
oShell.RegDelete "HKEY_LOCAL_MACHINE\NewOS\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsStore\WindowsUpdate\AutoDownload"
I cannot work this out. I get the same thing if I try and run the script on my standard Win10 box, even if I manually create the key.
Any ideas?
Metadata
Metadata
Assignees
Labels
No labels