Return Of Thread Killer Giveaway!!!
-
testing
-
Set WSHShell = WScript.CreateObject("WScript.Shell")
Set oFS = CreateObject("Scripting.FileSystemObject")strWarning = "Due to network maintenance, this computer must be restarted. You have 5 minutes to save your work from the start of this countdown. Sorry for any inconvenience caused. "
strDelay = 300 'Delay given in seconds; change this value to your preference, or set it to 0 to give no delay at all'Open a text file of computer names
'with one computer name per line
Set oTS = oFS.OpenTextFile("C:\computers.txt")'go through the text file
Do Until oTS.AtEndOfStream
'get the next computer name
'store it in variable strCompname
strCompname = oTS.ReadLine
WshShell.Run "C:\Windows\System32\shutdown.exe -m \" & strCompname & " -r -c " & Chr(34) & strWarning & Chr(34) & " -t " & strDelay 'Replace the "-r" switch with "-s" to make the computers shutdown instead
Loop
'close the text file
oTS.Close -
2002, with Dennis Quaid
Sent from my Nexus 6 using Tapatalk
-
Closing this thread now!
-
.
-
???
-
WOOT! I'm on the 29th page! I AM THE KING!
-
What was the original prize?
-
@kkokkolis said:
What was the original prize?I doubt anybody remembers that by now :) We are all falling down the black hole of the infinite thread :D

-
night folks
-
Good Night, you all can go about your other business, I think I have this won.
Or at a bare minimum you can go do anything else for two hours. :D
-
:D :D
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login


