Log on to Win 7, and then immediately lock.
I have a Sybase based POS server running on Windows 7 32-bit. The process that starts it won't start until the user is logged on, i.e it doesn't run as a service. For security reasons, I have an admin account and a user account. The screen saver is setup to require a password on resume. PCI security standards state that you cannot have auto log on enabled. I want to have the user account log on, and then instantly have the screensaver kick on, so you need a password to actually do anything. Even if I set it to 1 minute, someone could just restart to PC, and then just not leave the PC idle for more than a minute, and do whatever they want. The intent is for the server to restart on power failure or error state, and the POS server software that runs the registers will start without user intervention. Sometimes there is not a manager present to even unlock the office door to log in to the server. My first thought is the screensaver, unless anyone has any more ideas.
April 19th, 2012 3:37pm

You could use logon script to lock the screen at specified time interval then the user would not have choice to keep the session unlocked. http://community.spiceworks.com/scripts/show/465-lock-workstation-script-with-optional-pause so if you want to lock at 2 min then just change this part sleep("1") to sleep("2") '#============================================================================== '#============================================================================== '# SCRIPT.........: lockWorkstation.vbs '# AUTHOR.........: Joe Glessner '# VERSION........: 1.0 '# DATE...........: 29OCT08 '# LICENSE........: Freeware '# REQUIREMENTS...: '# '# DESCRIPTION....: Locks the local workstation. '# '# NOTES..........: Tested on Windows XP, Vista, and 7. '# '# CUSTOMIZE......: Occasionally it is desirable to wait a specified time '# before locking the workstation. If you want to do this, '# uncomment line 47 below, and the script will pause for '# one minute before executing. Change 1 to the desired time '# in minutes. '#============================================================================== '# REVISED BY.....: '# EMAIL..........: '# REVISION DATE..: '# REVISION NOTES.: '# '#============================================================================== '#============================================================================== '**Start Encode** '#============================================================================== '# START OF SCRIPT '#============================================================================== 'Option Explicit On Error Resume Next '#-------------------------------------------------------------------------- '# Declare Constants '#-------------------------------------------------------------------------- '#-------------------------------------------------------------------------- '# Declare Variables '#-------------------------------------------------------------------------- DIM objShell '#-------------------------------------------------------------------------- '# Wait one minute before locking workstation '#-------------------------------------------------------------------------- sleep("1") '#-------------------------------------------------------------------------- '# Lock the local workstation '#-------------------------------------------------------------------------- Set objShell = CreateObject("Wscript.Shell") objShell.Run "%windir%\System32\rundll32.exe user32.dll,LockWorkStation" '#============================================================================== '# SUBROUTINES/FUNCTIONS/CLASSES '#============================================================================== '#-------------------------------------------------------------------------- '# SUBROUTINE.....: sleep(strTime) '# PURPOSE........: Pauses the script for a specified time. '# ARGUMENTS......: strTime = The time in Minutes to wait '# EXAMPLE........: sleep("1") '# REQUIREMENTS...: '# NOTES..........: The example pauses the script for one minute. '#-------------------------------------------------------------------------- Sub Sleep(strTime) strTime2 = (strTime * 60) * 1000 wscript.sleep strTime2 End Sub '#============================================================================== '# END OF FILE '#==============================================================================
Free Windows Admin Tool Kit Click here and download it now
April 19th, 2012 4:28pm

Hi, How about make a task scheduler. First make a bat file to lock screen. Open a txt file and write rundll32.exe user32.dll, LockWorkStation", then save as a bat file. On task scheduler, set the Triggers to At logon, you can set Any user or Specific user when logon. Then go to Actions tab to set the action start a program, click browse button and choose the bat file. Thus when the user logon PC should run that bat to lock screen. Hope that helps. Regards, Leo HuangLeo Huang TechNet Community Support
April 20th, 2012 6:15am

now that's more up my alley. trying it this afternoon
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2012 1:50pm

HA! So easy. I knew there must be a simple way to do that. I never would have come up with those batch file commands. Thanks.
April 20th, 2012 3:08pm

I'm not much of a VBScript guy, or any at all, really. Never done it before. I guess I might have to try to start. In the meantime, if anyone else has anything to add, please do.
Free Windows Admin Tool Kit Click here and download it now
April 20th, 2012 5:46pm

Hi, How about make a task scheduler. First make a bat file to lock screen. Open a txt file and write rundll32.exe user32.dll, LockWorkStation", then save as a bat file. On task scheduler, set the Triggers to At logon, you can set Any user or Specific user when logon. Then go to Actions tab to set the action start a program, click browse button and choose the bat file. Thus when the user logon PC should run that bat to lock screen. Hope that helps. Regards, Leo HuangLeo Huang TechNet Community Support
April 20th, 2012 11:05pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics