Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: How to create batch script to lock workstation then log off.


04 Sep 2012   #1

Windows 7 Professional x64
 
 
How to create batch script to lock workstation then log off.

Hi,

Does anyone know if it is possible to create a batch script that will lock the workstation, do some other jobs, and then log off.

For example,
Code:
@echo off
@lockWorkSation
@doSomeJobs
@logOff
I've already tired,
Code:
@echo off
@rundll32.exe user32.dll,LockWorkStation
@doSomeJobs
@shutdown.exe /L
However, the log off fails.

Thanks

My System SpecsSystem Spec
.

Reply

 How to create batch script to lock workstation then log off.




Thread Tools



Similar help and support threads for2: How to create batch script to lock workstation then log off.
Thread Forum
Change display settings on Workstation lock Customization
Creating a batch script or use a 3rdpartyprogram to create shortcuts General Discussion
Is there a Script or batch file that can create folders by date range General Discussion
track / log user ctrl+alt+del lock and unlock workstation System Security
Lock Workstation problems General Discussion
Lock Workstation taking too long General Discussion
Help me with Batch script! Software

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 12:25 AM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33