Category Archives: Registry

Office Addin Manager

Hello!

Once again i’ve created another Powershell (XAML) application.

This time i’m releasing Office Addin Manager, which allows you to manage Office addins on your own or a remote computer. As always, changing registry settings on a remote computer requires you to have administrative permissions on that computer.

With this tool you can in a quick manner change the load behavior of Office addins no matter the Office application, no more messing around in regedit or manually open each Office application.

Office Addin Manager uses a number of different values to configure each addin to run with a specific behavior. Read more about load behavior values on docs.microsoft.com

 

Download

If you have any questions feel free to ask them below, i’m more than happy to answer them 🙂

[Registry] How to Restore Windows Photo Viewer in Windows 10

Hi everybody! 

Are you tired of the Windows 10 Photo app? Or simply want to change back to the old photo viewer?

In this post i’m going to show you how to get the Photo Viewer (formerly Windows Picture and Fax Viewer) back in Windows 10.

There are several articles out there that show you how to do this, some that i’ve tried worked, some did not.

Anyway, these registry keys is needed, and no reboot is required.

 

How it’s done:

  1. Download this .reg file (or copy/paste the raw code from pastebin)
  2. Unzip RestorePhotoViewer.reg
  3. Run the .reg file, and press Yes to continue
  4. Now you can associate images files with the classic Photo Viewer

 

I have only verified this to work in 1709 and 1803 only, comment down below what other release ids it works/doesn’t works on.

Modifying the registry could create problems on your computer, so please make sure that you know what you’re doing when running .reg files.

How to Reset the Color of the Command Prompt in Windows 10

Hi everyone!

Recently bumped into an issue regarding the classic command prompt (CMD).

 

Problem:

CMD colors are changed so that you are unable to see the text, and cannot change back (for whatever reason)

 

Solution:

Change the REG_DWORD DefaultColor to “7

HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Command Processor' -Name DefaultColor -Value "7"

 

Voila!

Procmon saves the day!

 

[PS] Get Microsoft Office 2016 Version

This time we’re retrieving Microsoft Office 2016 Version with Get-ItemProperty

This is the fastest way i know to retrieve this value. You could also use Get-WmiObject win32_product but it will probably not be as fast.


$Version = Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration"
$Version.ClientVersionToReport

[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