automatic login and screen lock
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
automatic login and screen lock

 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming
Author Message
keithpresley



Joined: 13 Nov 2006
Posts: 2
Location: High Wycombe, UK

Posted: Mon Nov 13, 2006 4:20 pm    Post subject: automatic login and screen lock Reply with quote

Hi,

does anyone know how I can get a login script to execute a "CTRL+ATL+DEL" - "Lock Computer" procedure.

I am looking to get the PC to login automatic before the user arrives and lock it's screen until the user arrive and unlocks it.

Cheers,

Keith.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
jftuga



Joined: 23 Oct 2007
Posts: 1
Location: Athens, GA

Posted: Tue Oct 23, 2007 12:19 pm    Post subject: Reply with quote

Using a VBS script:
Code:
On Error Resume Next

Set objShell = CreateObject("Wscript.Shell")
objShell.Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation"


http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov04/hey1115.mspx


-John
Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    Windows Server Forum Index -> Programming All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB