'Restore the System Configuration Restart Prompt
On Error Resume Next

Dim WshShell, ObjShell, Message

Set WshShell = WScript.CreateObject("WScript.Shell")
If WScript.Arguments.length = 0 Then
Set ObjShell = CreateObject("Shell.Application")
ObjShell.ShellExecute "wscript.exe", """" & _
WScript.ScriptFullName & """" & " uac","", "runas", 1
Else

Message = "This script will Restore the System Configuration Restart Prompt." & vbCr & vbCr _
 & "This action will DELETE a Registry Key." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?"

M = MsgBox(Message, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If M = 6 Then 

WshShell.RegDelete "HKCU\Software\Microsoft\Shared Tools\MSConfig\NoRebootUI"

Message = "System Configuration Restart Prompt is now restored." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox Message, 64, "Done!" 
End If
End If
