Win2K shutdown

  • Thread starter Thread starter bird
  • Start date Start date
B

bird

I will perform a shutdown/restart by a batch program. The
known Rundll32.exe user,exitWindows etc. wont work...

What is the reason, and is it another way to do it..?

Many thanks in advance,

Bird
 
Bird,



Thanks for your post.



I don't know about the RunDll32 issue but here is some sample WMI code for
rebooting a server using VBScript:



dim OperatingSystem, system
set OperatingSystem =
GetObject("winmgmts:{(Shutdown)}//./root/cimv2").ExecQuery("select * from
Win32_OperatingSystem where Primary=true")
for each System in OperatingSystem
System.Reboot()
next


Best Regards,

Bruce Frank, Microsoft



Please do not send email directly to this alias. This is my online account
name for newsgroup participation only.

This posting is provided "As is" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top