Shutdown Windows when pwd-protected screensaver is active...
Hi. I have an API question.
I'm using ExitWindowsEx function to shutdown Windows (usually Win2K). It is working fine, it shutsdown, restarts, etc. If a screensaver is active and password protected though, it does not work at all.
Is there a way to "persuade" Win2K to shutdown even if a password-protected screensaver is active?
I dont have a definate answer for ya unfortunately, but I wonder if it is possible to somehow find the threadID of the screensaver and kill it. I can remember a few years ago fooling around with a program called Sub7 (by mobman) which could do this remotely but that was very very naughty!!!
It is indeed a naughty solution but i don't believe it will solve my problem. I'm using Win2K and it is most probable that the screensaver "tells" the system to lock itself so killing the ss will not unlock the system. This might work on a Win98 system.
Originally posted by Illuvatan
you're trying to shutdown windows while the workstation is locked isn't it ?
windows 2000 has no password protected screensavers, windows locks the workstation and then starts the screensaver.
Yes, that's what i'm trying to do... I know about all the things you mention here.
And I don't know any way to unlock a workstation without entering a password.
Maybe you could try using the shutdown.exe windows has.
Windows has no such exe AFAIK. Perhaps you are talking about a third-party utility. In any case, do you know of any utility which will shutdown the system, even if it has been locked?
That may help.. greetings UNI
Unfortunatelly it didn't but thanks for your thoughts anyway...
Keine Argumente Zeigt diese Meldung an (wie -?).
-i Zeigt eine grafische Benutzeroberfläche an (muss die erste
-l Abmelden (kann nicht mit der Option -m verwendet werden).
-s Fährt den Computer herunter.
-r Fährt den Computer herunter und startet ihn neu.
-a Bricht das Herunterfahren des Systems ab.
-m \\Computer Remotecomputer zum Herunterfahren/Neustarten/Abbrechen.
-t xx Zeitlimit für das Herunterfahren, in xx Sekunden.
-c "Kommentar" Kommentar für das Herunterfahren (maximal 127 Zeichen).
-f Erzwingt das Schließen ausgeführter Anwendungen ohne Warnung.
-d [u][p]:xx:yy Grund (Code) für das Herunterfahren:
u = Benutzercode
p = Code für geplantes Herunterfahren
xx = Hauptgrund (positive ganze Zahl kleiner als 256)
yy = Weiterer Grund (positive ganze Zahl kleiner als 65536)
sorry but my Windows is in German...
This shutdown command triggers the window the blaster worm used to shutdown the computer. you will see a window that tells you that in a few seconds you computer will shut down.
try this in your cmd shell
shutdown -s -t 1000
your computer will then display that window an tell you that he will shutdown in 1000 seconds.
This can't be aborted without again using the shutdown command.