Script:vbs:WindowsReboot
vbs/Windows再起動
はじめに
WindowsOSを再起動するスクリプト
スクリプト
- example.vbs
for each Process in _ GetObject("winmgmts:{impersonationLevel=impersonate}").ExecQuery _ ("select * from Win32_Process where Name='Spinel.EXE'") Process.terminate Next Set objSystemSet = GetObject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}").InstancesOf("Win32_OperatingSystem") For Each objSystem In objSystemSet objSystem.Win32Shutdown 6 Next
Script/vbs/WindowsReboot.txt · 最終更新: 2022/05/27 by 127.0.0.1