Last active
September 26, 2023 21:10
-
-
Save T31337/f2ef08ab3824559e7c055ab32882a194 to your computer and use it in GitHub Desktop.
user unfriendly startup script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'User Unfriendly StartUp Script | |
function shutdown() | |
Dim objShell | |
Set objShell = WScript.CreateObject("WScript.Shell") | |
'objShell.Run "cmd /c shutdown -s -t 90" | |
wscript.sleep 6000 | |
objShell.Run "cmd /c shutdown -s -t 00" | |
end function | |
Dim msg, sapi | |
Set sapi = createObject("sapi.spvoice") | |
'the following line will make it use female voice instead of default | |
'Set sapi.Voice = sapi.GetVoices.Item(1) | |
sapi.Speak "Fuck Off" | |
alertBox = msgBox("Warning You Are Not Welcome Here!" & vbCrLf & vbCrLf & "Be Gone!",0+16, "Go Away!") | |
Select Case alertBox | |
Case 1 | |
shutdown() | |
End Select |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment