Tag Archives: Windows 10

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] How to remove Windows Hello for Business PIN

Hello internet!

Short story:

I currently work in an organization where we use Windows Hello for Business as an “two-factor” authentication method. In some cases i need to completely remove the PIN-code from the computer (without having to re-install Windows 10). This is the only way i know of that really removes the PIN from the computer. Feel free to comment down below if you know another way.

 

How to remove Windows Hello for Business PIN from a computer:

  1. The first thing we need to do is specifying the path to the NGC-folder (which holds the WHFB-keys)
  2. Next, taking ownership of the folder (make sure that you’re running Powershell as an administrator)
  3. And lastly, remove the folder and all of it’s content.
  4. Now you need to reboot the computer, and the PIN should now be completely removed.
  5. If you’re distributing WHFB using GPO, don’t forget to remove those aswell.

 

Powershell:


$path = "C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc"
takeown /f $path /r /D y
Remove-Item -Force -Recurse -Path "$path\*" -erroraction 'silentlycontinue'

 

 

If you don’t want to use Powershell, you can follow this great guide on how to take full ownership of a folder, after that is done you just have to remove the following folder:

C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\Ngc

 

 

[PS] Add/Remove Sticky Notes

Hello world!

This script might be useful if access to Microsoft Store is blocked for all users, then the only way to retrieve apps that have been removed or is missing, is to add them using Powershell. This is specifically for Sticky Notes.

In order to install Sticky Notes, you must first know the full name of the package, and to retrieve that, you have to have Sticky Notes installed. It’s a catch-22, i know. But you could probably run the retrieve-command at another computer to get your PackageFullName. Anyway, here’s how it’s done…



 

Install Sticky Notes: (new method)


$PackageFullName = (Get-AppxPackage | Where-Object {$_.PackageFullName -Like "*MicrosoftStickyNotes*"}).PackageFullName
Add-AppxPackage -register "C:\Program Files\WindowsApps\$PackageFullName\appxmanifest.xml" -DisableDevelopmentMode

 

Remove Sticky Notes:

Get-AppxPackage *stickynotes* | Remove-AppxPackage

 

Must be run as currently signed in user, not with an elevated admin account.

Verified to work on Windows 10 1703, 1709 & 1803 – comment down below if you get any errors.

 

Check out my new article

[PS] Top Ten Simple Powershell commands every IT-admin should know