Monthly Archives: January 2019

[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

[PS] Set Print Layout or Web Layout to default in Word 2016

Registry value:


PreferredView (0) = Print Layout

PreferredView (1) = Web Layout


Creating a scheduled task that sets Web Layout or Print Layout at login:

1. Create PS file with the following content, and save it somewhere

 New-ItemProperty -Path "Registry::\HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options" -Name "PreferredView" -PropertyType DWORD -Value "0" -Force 

2. Create a task schedule that runs this Powershell-script att login.

FontInstall – A simple tool that can install fonts on remote computers


One of my first created softwares/tools that i actually have real use of, is FontInstall it is a simple tool that you can use to install fonts to a another computer in your corporate network silently.


  • Windows 10
  • Launch the program with an account that has administrative access to the remote computer

Current drawbacks:

  • Only works with .ttf and .otf files currently
  • One .ttf/.otf file at a time
  • Kinda slow

Click here to download


You already voted!

[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