Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Ctrl-Alt-Del screensavername.scr
If you can't do it with WinBatch, do you know a method outside of Winbatch to call up this screen other than Ctrl-Alt-Del so we can then use Winbatch to send the required keystroke?
Here is the scenario:
The user of an NT client is able to look at "confidential" information via an application. We want to be sure that it is the user that originally logged on who is running the application and hence we wish to force them into the "Lock Workstation" state so that they have to reauthenticate themselves.
run("rundll32.exe", "user32.dll,LockWorkStation")
To launch the screen blanker:
a=IniReadPvt("Boot","SCRNSAVE.EXE","FLYING~1.SCR","SYSTEM.INI") ERRORMODE(@OFF) ; WARNING DO NOT USE WITHOUT SUPERVISION LastError() run(a,"/s") ErrorMode(@CANCEL) if LastError() then Display(5,"Sorry","No screen blanker found")
Note: when testing stuff, (ie: you change an NT screen saver to secure), you'll have to restart Windows as that's the Microsoft-way of initializing it.
Then, you should be able to invoke it with the run("screensavername.scr", "/s") WIL command.
Article ID: W13817
Filename: Lock Workstation for Security with ScreenSaver.txt
File Created: 2001:11:16:12:43:28
Last Updated: 2001:11:16:12:43:28