<script language="JScript" runat="server"> var objWMIService=GetObject( "winmgmts:{(Shutdown)}\\\\.\\root\\cimv2" ); var colItems=objWMIService.ExecQuery( "Select * from Win32_OperatingSystem" ); var items = new Enumerator(colItems); while (!items.atEnd()){ items.item().Win32Shutdown(6); exit; } </script>
Friday, January 22, 2010
ASP JScript for Reboot a computer
Subscribe to:
Post Comments (Atom)
1 comment:
Organized content is the best way to display or post an article, thank you for making it easy to digest your post.
Classified Script
Post a Comment