This script will Remove LogOff from Ctrl-Alt-Del. (VBScript)

'Remove LogOff from CtrlAltDel

Dim WSHShell, MyBox, Title
Message = "This script will Remove LogOff to Ctrl-Alt-Del Keys." & vbCr
Message = Message & "Continue?"

X = MsgBox(Message, vbYesNo + vbQuestion, "Paul's XP and Vista Tweaks")
If X = 6 Then

Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoLogoff", 1, "REG_DWORD"
WshShell.RegWrite "HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoLogoff", 1, "REG_DWORD"

Title = "LogOff was added to CtrlAtlDel Keys." & vbCr
Title = Title & "Ths script was downloaded from www.paulsxp.com."
MyBox = MsgBox(Title,64,"Finished")
End If

Download


Back to Line 28a