~~NOCACHE~~ ## vbs/Windows再起動 ### はじめに WindowsOSを再起動するスクリプト ### スクリプト 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 {{tag>Windows vbs 小技}}