Automatisch abmelden (per vbs und wmi?)
Hallo,
ich möchte dass ein user (nachdem versch. Einträge in der reg gemacht wurden) automatisch abgemeldet wird
damit die Einstellungen wirksam werden. Wie kann ich das machen?
für wmic habe ich jetzt im www diesen befehl gefunden:
wmic os where "status = 'ok'" call win32shutdown 0
ich möchte dass das ganze aber auch unter win2000 geht.
welche wmi klasse bietet diese methode an?
win32_operatingsystem (meine vermutung wegen wmic os) ist es nicht.
Danke!
SC
ich möchte dass ein user (nachdem versch. Einträge in der reg gemacht wurden) automatisch abgemeldet wird
damit die Einstellungen wirksam werden. Wie kann ich das machen?
für wmic habe ich jetzt im www diesen befehl gefunden:
wmic os where "status = 'ok'" call win32shutdown 0
ich möchte dass das ganze aber auch unter win2000 geht.
welche wmi klasse bietet diese methode an?
win32_operatingsystem (meine vermutung wegen wmic os) ist es nicht.
Danke!
SC
Please also mark the comments that contributed to the solution of the article
Content-Key: 130997
Url: https://administrator.de/contentid/130997
Printed on: April 20, 2024 at 03:04 o'clock
3 Comments
Latest comment
Nimm den vorhandenen Befehl
Verwendbar für alle Systeme:
C:\>shutdown /h
shutdown 1.0 for Windows XP - September 2nd, 2001
Copyright(C) 2000-2001 Andrej Budja, www.budja.com/shutdown
This program is FREEWARE.
Usage: shutdown [-lkurhs] [-f] [-c] [-t sec]
-l: Log Off.
-u: Shutdown (Turn Off).
-r: Restart.
-h: Hibernate.
-s: Stand By (Sleep).
-f: Force the action.
-c: Cancel a running shutdown.
-t sec: Delay for number of seconds.
Examples:
shutdown -l -f: Logs off current user and forces quick shutdown of applications
shutdown -s -t 30: Initates standby in 30 seconds
shutdown -c: Cancels all initiated actions
Gruß Uwe
Verwendbar für alle Systeme:
C:\>shutdown /h
shutdown 1.0 for Windows XP - September 2nd, 2001
Copyright(C) 2000-2001 Andrej Budja, www.budja.com/shutdown
This program is FREEWARE.
Usage: shutdown [-lkurhs] [-f] [-c] [-t sec]
-l: Log Off.
-u: Shutdown (Turn Off).
-r: Restart.
-h: Hibernate.
-s: Stand By (Sleep).
-f: Force the action.
-c: Cancel a running shutdown.
-t sec: Delay for number of seconds.
Examples:
shutdown -l -f: Logs off current user and forces quick shutdown of applications
shutdown -s -t 30: Initates standby in 30 seconds
shutdown -c: Cancels all initiated actions
Gruß Uwe