'Restore Screensaver Tab Settings, XP.

On Error Resume Next

Dim WshShell, sMsg, sDone 

Set WshShell = WScript.CreateObject("WScript.Shell")

sMsg = "This script will Restore Screensaver Tab Settings." & vbCr & vbCr _
 & "If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?" 
 
Input = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If (Input = vbYes) Then 

WshShell.RegWrite "HKCU\Control Panel\Desktop\ScreenSaverIsSecure", 0, "REG_SZ"
WshShell.RegWrite "HKCU\Control Panel\Desktop\ScreenSaveTimeOut", 600, "REG_SZ"
WshShell.RegWrite "HKCU\Control Panel\Desktop\ScreenSaveActive", 1, "REG_SZ"
WshShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop\ScreenSaveActive", 1, "REG_DWORD"
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSaveSettings", 0, "REG_DWORD"

WshShell.RegDelete "HKCU\Software\Policies\Microsoft\Windows\Control Panel\Desktop\SCRNSAVE.EXE"

sDone = "Screensaver Tab Settings Restored!." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"
End If
