Logip = "localhost" 'host identifies user = "administrator"' Username Password = "" Cipher Namespace = "root / cimv2" 'WMI namespace
WScript.echo "Strat"
SET WMILOCATOR = CreateObject ("wbemscripting.swbemlocator") set objWMI = Wmilocator.ConnectServer (Logip, Namespace, User, Password)
Set Osset = Objwmi.instanceSof ("Win32_OperatingSystem")
For Each OS in OSsetos.shutdownNext
WScript.echo "End" script> job>