Jump to content

server per vbs herunterfahren?


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Recommended Posts

hi!

 

habe von velius dieses vbs gefunden welches auf xp und w2k3 super läuft nur unter nt4 funkt es nicht :nene:

 

kann mir bitte einer verraten wie ich unter nt4 dieses script zum laufen kriege?

 

Original geschrieben von Velius

Es gibt da auch ein VBS davon!!

 

Der Code:

 

---------------------------------------------------------------------------------------

 

Set colOperatingSystems = GetObject("winmgmts:{(Shutdown)}").ExecQuery("Select * from Win32_OperatingSystem")

For Each objOperatingSystem in colOperatingSystems

ObjOperatingSystem.Win32Shutdown(8+4)

Next

 

---------------------------------------------------------------------------------------

 

 

Die Parameter:

---------------------------------------------------------------------------------------

 

Value Meaning

0 Log Off

0 + 4 Forced Log Off

1 Shutdown

1 + 4 Forced Shutdown

2 Reboot

2 + 4 Forced Reboot

8 Power Off

8 + 4 Forced Power Off

 

Simple extension to shutdown remote computer.

 

--------------------------------------------------------------------------------------

 

Grüsse

 

gruss saracs

 

ps: ich hab davon leider null ahnung :D :rolleyes: also bitte nicht schimpfen ;)

Link to comment
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...