This script will Restore the System Configuration Restart Prompt. (VBScript)
| 'Restore the System Configuration Restart Prompt On Error Resume Next Set PmShell = WScript.CreateObject("WScript.Shell") Message = "This script will Restore the System Configuration Restart Prompt." & vbCr Message = Message & "This will make changes to the Registry." & vbCr & vbCr Message = Message & "Continue?" X = MsgBox(Message, vbYesNo + vbQuestion, "www.paulsxp.com") If X = 6 Then PmShell.RegDelete "HKCU\Software\Microsoft\Shared Tools\MSConfig\NoRebootUI" MsgBox "Done!" & vbCrLf & "System Configuration Restart Prompt is now restored." &vbCr & vbCr &_ "This script was downloaded from www.paulsxp.com.",64, "System Configuration Prompt" End If |