set objWMIService = GetObject ("winmgmts:" "{ImpersonationLevel = impersonate}! . Root cimv2")
set colSoftware = objWMIService.ExecQuery ("Select * from Win32_OperatingSystem")
for each objSoftware in colSoftware
objSoftware.Win32Shutdown 1
next
(Для Windows XP і Windows 7).
$ J = 30
ProgressOn
For $ i = 1 to 99 step 3.3
$ J = $ j-1
sleep (1000)
ProgressSet ($ i)
Next
ProgressSet (-1)
Shutdown (2)
sleep (5000).