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: Change display settings on Workstation lock

28 Apr 2013   #1
kirua

Windows 7 Ultimate x64
 
 
Change display settings on Workstation lock

Hi,

What I'm trying to do is to clone my display at workstation lock and switch to internal or external display at workstation unlock depending on the user.

I found a solution in another post : Locked computer dual monitor

The method 2 described seems to match my case but I can't manage to make it work... I created the tasks but nothing happen when I do Win+L...

Here is the description of the method :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

METHOD 2: Scheduled Triggers
This workaround involves changing the display to duplicate screens when you lock your computer and changing it back to 2 screens when you unlock it.

To do this, we'll use task scheduler to run some command lines on a trigger. The triggers will be either unlock or locking of the computer.
%windir%\System32\DisplaySwitch.exe /extend to use two screens
%windir%\System32\DisplaySwitch.exe /clone to clone the screens
or we could also use
%windir%\System32\DisplaySwitch.exe /internal to use just one screen


So lets set this up
Create the First Task
  1. Open the task scheduler by typing taskschd.msc into RUN or SEARCH and pressing ENTER
  2. Right Click on Task Scheduler (Local) and select 'Create Task'
  3. In the Create Task Window Type a Name for first the task (e.g. Single Display Lock)
  4. Type in a description (E.g. This task is triggered when Windows is locked and changes the display to a single display)
  5. Tick the 'Run with Highest Privilages' Box
  6. Change the 'Configure for' drop down box to "Windows 7, Windows Server 2008 R2"
  7. Select the TRIGGERS tab
  8. Click NEW
  9. In the Begin the Task Dropdown select "On workstation lock"
  10. in The Advanced Settings Select the "Delay Task for" box and type 3 Seconds in the box beside it. NOTE: you may need to increase this if it doesn't work for you.
  11. Click OK
  12. Select the ACTIONS tab
  13. Click NEW
  14. In the Program/Script box type the following %windir%\System32\DisplaySwitch.exe
  15. In the Add Arguments box type /clone
  16. Click OK
  17. Select the CONDITIONS tab
  18. Click OK to save and exit the new task

Create the Second Task
  1. Open the task scheduler by typing taskschd.msc into RUN or SEARCH and pressing ENTER
  2. Right Click on Task Scheduler (Local) and select 'Create Task'
  3. In the Create Task Window Type a Name for first the task (e.g. Extended Screen for Unlock)
  4. Type in a description (E.g. This task is triggered when Windows is unlocked and extends the screen to two monitors)
  5. Tick the 'Run with Highest Privilages' Box
  6. Change the 'Configure for' drop down box to "Windows 7, Windows Server 2008 R2"
  7. Select the TRIGGERS tab
  8. Click NEW
  9. In the Begin the Task Dropdown select "On workstation unlock"
  10. in The Advanced Settings Select the "Delay Task for" box and type 3 Seconds in the box beside it. NOTE: you may need to increase this if it doesn't work for you.
  11. Click OK
  12. Select the ACTIONS tab
  13. Click NEW
  14. In the Program/Script box type the following %windir%\System32\DisplaySwitch.exe
  15. In the Add Arguments box type /extend
  16. Click OK
  17. Select the CONDITIONS tab
  18. Click OK to save exit the new task

It takes a few seconds to come up but it should work a-ok.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

If anyone could help ? Thanks !


My System SpecsSystem Spec
.
02 May 2013   #2
kirua

Windows 7 Ultimate x64
 
 

anyone ?
My System SpecsSystem Spec
02 May 2013   #3
Dude

Windows 10 Pro X64
 
 

I have never tried that, but I would try method 3
My System SpecsSystem Spec
.

Reply

 Change display settings on Workstation lock




Thread Tools




Similar help and support threads
Thread Forum
DPI Display Size Settings - Change
How to Change the Display DPI Size in Windows 7 and Windows 8 This will show you how to change the DPI (Dots per Inch) size settings to allow text and other items, such as icons, fonts, and windows, to display larger or smaller in Windows 7 and Windows 8. For Windows 8.1, see instead: How to...
Tutorials
Tying the display power settings with the lock/unlock functions.
I've just installed a "GateKeeper" (www.gkchain.com) which locks/unlocks the desktop based on my proximity to my desktop PC. It works beautifully, but is a little odd when my display has gone into power saving mode whilst the desktop is locked... I approach the PC, and the desktop unlocks, and...
General Discussion
Lock Down System Restore Settings
I would like to "lock down" the system restore settings after I set it up on my main hd. For some reason it gets changed by either my setup of "daily disk cleaner" or Ccleaner or some other program. Any tips would be greatly apreciated Thank You
Backup and Restore
Lock Workstation problems
Hi, I'm having some strange problems with Lock Workstation. Sometimes it works like it should, but sometimes it takes a long time to lock/unlock and the screen goes black for a bit. After I restart my computer the problem goes away, but it always comes back. This problem started within the last...
General Discussion
Lock Workstation taking too long
Hi. I just switched to Windows 7 Ultimate and I'm noticing that the command "Windows+L" to lock my screen takes 5 seconds to lock and 21 seconds to unlock, that a lot! While it's locking/unlocking the screen goes black. This action used to be immediate in XP and Vista. Is this an OS problem or...
General Discussion


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 16:09.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App