'Fix Msconfig

Dim WshShell, Msg, sInput, sDone

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

Msg = "This script will fix MSConfig stuck in Selective Mode." & 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?" 

sInput = MsgBox(Msg, vbYesNo + vbInformation, "Paul's XP, Vista and Windows 7 Tweaks")
If sInput = 6 Then 

WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Shared Tools\MSConfig\state\startup", 0, "REG_DWORD"

sDone = "MSConfig will now start in Normal Mode." & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com." 
MsgBox sDone, 64, "Paul's XP, Vista and Windows 7 Tweaks"

If MsgBox("If you find this script was helpful and you would like to make a Donation?" & vbCr & vbCr & "Click Yes to visit my Donation page at Paul's Web Site." & vbCr & vbCr & _
 "All donations are made through PayPalŪ.", vbInformation + vbYesNo + vbDefaultButton, "Make a Donation") = 6 Then
WshShell.Run "http://www.paulsxp.com/donation.html"
End If
End If
End If
