Hi, I have the following script, the question is, i would like to add
2 things to this script but am not sure how to.
1) Create a log file for this that will show "username" and say "time"
and "date" it was ran.
2) Rarther than the machine name hard coded in the script allow a pop
up box so the user enters the machine name manually?
strComputer = "atl-dc-01"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate,(Shutdown)}!\\" & _
strComputer & "\root\cimv2")
Set colOperatingSystems = objWMIService.ExecQuery _
("Select * from Win32_OperatingSystem")
For Each objOperatingSystem in colOperatingSystems
objOperatingSystem.Reboot()
Next