PowerShell

Windows 10: Changing the default Projector Settings with displayswitch.exe (Duplicate, Extend …)

The default projector setting in Windows 10 is set to “Extend”. If you want to change that behavior, you have to press Windows key + P and select “Duplicate”. In this blog post I am going to show you how to change this default settings with the displayswitch.exe program. Additionally, I will describe how to change the default setting on multiple domain joined computers using Group Polices.

Projector Settings

Windows 10 provides 4 projector options that can be configured using the Windows Key + P key combination.

  • PC screen only
  • Duplicate
  • Extend
  • Second screen only

Unbenannt.PNG

Set Duplicate as Default

Teachers often log into different computers in different class rooms.  However, on any computer they log in for the first time, the projector settings are set to “Extend”. An – sometimes – unpleasant situation. So, we decided in our school to change that behavior. We created a batch file that sets the projector default setting to “Duplicate”. Here it is:

unbenannt

With the following one-liner in PowerShell, you can create the file and its content much faster.


New-Item -ItemType File -Path $home\Desktop -Name Duplicate.bat -Value "Displayswitch.exe /clone"

Distribute it via GPO

Now create a new GPO and configure the file as the login script for your users. Don’t forget to copy the file into the group policy folder of the policy you previously created.

Unbenannt.PNG

Finally, link the GPO to the appropriate OU. In my example, it’s the Marketing OU.

Unbenannt.PNG

Have fun!

Categories: PowerShell, Windows 10

Tagged as: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.