Tag Archives: Primary monitor

[PS] Force applications to start on primary monitor

Windows 10 is great isn’t? But in some cases a slight modification is needed. In my case, we needed to make sure that Outlook, Excel, Word, PowerPoint and Internet Explorer always started on the primary monitor.

This script was created to make sure that your Inbox or a super secret document, doesn’t open on a external monitor, such as a projector etc.

In this case i have found 9 registry values that control the position of these applications, and with this script i simply remove this keys, and by doing this the applications will now start on your primary monitor.

It would probably be a better idea to remove these registry keys by GPO, but i have created this script to give you a hint of what can be done.

If you find out our more registry values that control other common applications startup locations, feel free to comment them below to help others.

Verified to work on Windows 10 1709 (16299), Office 2016 and Internet Explorer 11.

 

# Outlook
Remove-ItemProperty -Name 'Frame' -Path 'HKCU:\Software\Microsoft\Office\16.0\Outlook\Office Explorer' -Confirm:$false
# Word
Remove-ItemProperty -Name 'AppWindowPos' -Path 'HKCU:\Software\Microsoft\Office\16.0\Word\Options' -Confirm:$false
# Excel
Remove-ItemProperty -Name 'Pos' -Path 'HKCU:\Software\Microsoft\Office\16.0\Excel\Options' -Confirm:$false
# PowerPoint
Remove-ItemProperty -Name 'Top' -Path 'HKCU:\Software\Microsoft\Office\16.0\PowerPoint\Options' -Confirm:$false
Remove-ItemProperty -Name 'Bottom' -Path 'HKCU:\Software\Microsoft\Office\16.0\PowerPoint\Options' -Confirm:$false
Remove-ItemProperty -Name 'Left' -Path 'HKCU:\Software\Microsoft\Office\16.0\PowerPoint\Options' -Confirm:$false
Remove-ItemProperty -Name 'Right' -Path 'HKCU:\Software\Microsoft\Office\16.0\PowerPoint\Options' -Confirm:$false
# Skype For Business
Remove-ItemProperty -Name 'WindowRect' -Path 'HKCU:\Software\Microsoft\Office\16.0\Lync' -Confirm:$false
# Internet Explorer
Remove-ItemProperty -Name 'Window_Placement' -Path 'HKCU:\Software\Microsoft\Internet Explorer\Main' -Confirm:$false