Hello!
Why do you want change those settings with VBScript?
I use *.reg file, with all settings which I want to change.
Here is example:
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
-> This is to ensure that nothing will be Autostarted when any of the users logon.
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"ServerAdminUI"=dword:00000000 ->
"Hidden"=dword:00000001 -> Explorer.exe -> Tools -> View: "Show hidden files and folders" - Checked
"ShowCompColor"=dword:00000001
"HideFileExt"=dword:00000000 -> Explorer.exe -> Tools -> View: "Hide extensions for known file types" - UnChecked
"DontPrettyPath"=dword:00000000
"ShowInfoTip"=dword:00000001
"HideIcons"=dword:00000000
"MapNetDrvBtn"=dword:00000000 -> If Value=1 - The Map Network Drive button will appear in Windows Explorer and My Computer toolbars.
"WebView"=dword:00000001 -> Explorer.exe -> Tools -> General: "Show common tasks in folders" - Checked
"Filter"=dword:00000000
"SuperHidden"=dword:00000001 -> Explorer.exe -> Tools -> View: "Hide protected operating system files (Recommended)" - UnChecked
"SeparateProcess"=dword:00000000
"ListviewAlphaSelect"=dword:00000001
"ListviewShadow"=dword:00000001
"ListviewWatermark"=dword:00000001
"TaskbarAnimations"=dword:00000001
"StartMenuInit"=dword:00000002
"StartButtonBalloonTip"=dword:00000002
"NoNetCrawling"=dword:00000001 -> Explorer.exe -> Tools -> View: "Automatically search for network folders and printers" - UnChecked
"FolderContentsInfoTip"=dword:00000001 -> Explorer.exe -> Tools -> View: "Display file size information in folder tips" - Checked
"FriendlyTree"=dword:00000001 -> Explorer.exe -> Tools -> View: "Display Simple folder view in Explorer`s Folder`s List" - Checked
"WebViewBarricade"=dword:00000001
"DisableThumbnailCache"=dword:00000001 -> Explorer.exe -> Tools -> View: "Do not cache thumbnails" - Checked
"ShowSuperHidden"=dword:00000001
"ClassicViewState"=dword:00000000
"PersistBrowsers"=dword:00000000 -> If Value=1 - The "My Documents" folder automatically opens every time that you log on to a Windows XP Service Pack 2-based computer [
]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState]
"FullPath"=dword:00000001
"FullPathAddress"=dword:00000001
-> Classic Search, Full Path In Title Bar And Address Bar. This allows you to disable the new Search Assistant Dog and use the traditional search interface in Windows Explorer
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ComputerDescriptions]
-> Remove and Create ComputerDescriptions: The ComputerDescriptions key is useful in determining whether or not a user was connected to certain computers or belonged to a specific LAN.
Desktop -> Properties -> Desktop -> Customize Desktop ... -> Desktop cleanup
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
"NoRun"=dword:00000001 -> "Run Desktop Cleanup Wizard every 60 days" - UnChecked
"Days between clean up"=dword:00000099 -> Days between clean up: 99
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\RunMRU]
-> Remove and Create: This is opened programs from Strat -> Run ...
[HKEY_CURRENT_USER\Control Panel\Desktop]
"MenuShowDelay"="0" -> Stop Delay Of Start Menu (400 by default)
"PaintDesktopVersion"=dword:00000000 -> Display the Build Number on the desktop
"PowerOffActive"="0" -> tells whether the power-off phase of screen saving is enabled.
"PowerOffTimeOut"="0" -> returns the timeout in seconds of the power-off feature.
"ScreenSaverIsSecure"="0" -> Desktop -> Properties -> Screen Saver -> "On resume, password protect" - UnChecked
"ScreenSaveTimeOut"="600" -> Desktop -> Properties -> Screen Saver -> Wait 10 minutes
"ScreenSaveActive"="0" - ScreenSaver (None)
"SCRNSAVE.EXE"="" - ScreenSaver (None)
[HKEY_CURRENT_USER\Control Panel\PowerCfg]
"CurrentPowerPolicy"="3" -> Desktop -> Properties -> Screen Saver -> Power -> Power Schemes: Always On
Global Power Policy:
[HKEY_CURRENT_USER\Control Panel\PowerCfg\GlobalPowerPolicy]
"Policies"=hex:01,00,00,00,00,00,00,00,03,00,00,00,08,00,00,00,00,00,00,00,03,\
00,00,00,08,00,00,00,00,00,00,00,03,00,00,00,00,00,00,80,00,00,00,00,03,00,\
00,00,00,00,00,80,00,00,00,00,01,00,00,00,00,00,00,80,00,00,00,00,01,00,00,\
00,00,00,00,80,01,00,00,00,03,00,00,00,00,00,00,00,04,00,00,c0,01,00,00,00,\
02,00,00,00,01,00,00,00,0a,00,00,00,00,00,00,00,03,00,00,00,01,00,01,00,01,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,02,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,00,\
00,12,00,00,00
Remove and Create Power Policies:
[-HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies]
[HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies]
Create Power Policies 3 (Always On):
[HKEY_CURRENT_USER\Control Panel\PowerCfg\PowerPolicies\3]
"Name"="Always On"
"Description"="This scheme keeps the computer running so that it can be accessed from the network. Use this scheme if you do not have network wakeup hardware."
"Policies"=hex:01,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,32,32,00,00,04,00,00,00,04,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,84,03,00,00,00,00,00,00,08,07,00,\
00,00,01,64,64,64,64,00,00