윈도우2000 서버 강제 재부팅 하는 스크립트

Set OpSysSet = GetObject(“winmgmts:{(Shutdown)}//./root/cimv2″).ExecQuery(“select * from Win32_OperatingSystem where Primary=true”)

for each OpSys in OpSysSet
OpSys.Win32Shutdown(6)
next

Comments

Powered by Facebook Comments

댓글 남기기

당신의 이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다.

*

다음의 HTML 태그와 속성을 사용할 수 있습니다: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>