Code Monkey home page Code Monkey logo

add-or-remove-application-to-windows-10-taskbar's Introduction

Add Application to Windows 10 Taskbar

Remove Application from Windows 10 Taskbar

PowerShell-Functions for Taskbar-Pinning in Windows 10

This small powershell Script adds or removes your own Applications from / to Windows 10 Taskbar (Taskbar-Pinning). The functionality is a bit tricky in Windows 10 as Microsoft doesn't like to offer Applications to pin themselves during installation.

Script: TaskbarPinning.ps1

Tested with: Windows 10 v1709 (English & German)

Usage: Variant 1: Pin / Unpin regular Executables (no UWP Apps)

Import-Module .\TaskbarPinning.ps1

# Add Taskbar-Pinning
Add-TaskbarPinning("C:\Windows\Notepad.exe")

# Remove Taskbar-Pinning
Remove-TaskbarPinning("C:\Windows\Notepad.exe")

Usage: Variant 2: Pin / Unpin Applications and UWP Apps already listed in Start Menu

Note: Handling Add-/Remove-TaskbarPinningApp can only be done by Processes named explorer Workaround to do this with Powershell: Make a copy of PowerShell named explorer.exe in Temp-Directory and use this

copy $env:windir\System32\WindowsPowerShell\v1.0\powershell.exe $env:TEMP\explorer.exe

& $env:TEMP\explorer.exe
Import-Module .\TaskbarPinning.ps1

List all by Explorer known Apps containing a given Subtring

List-ExplorerApps("Microsoft")

Shows a List like this:

Name                                                                                             Value
----                                                                                             -----
{6D809377-6AF0-444B-8957-A3773F02200E}\Microsoft\Web Platform Installer\WebPlatformInstaller.exe Microsoft Web Platform Installer
Microsoft.ConnectivityStore_8wekyb3d8bbwe!App                                                    Microsoft Wi-Fi
Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge                                              Microsoft Edge
Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe!App                                         Microsoft Solitaire Collection
Microsoft.WindowsStore_8wekyb3d8bbwe!App                                                         Microsoft Store

Add or Remove TaskbarPinning of an App

# Add or Remove UWP Apps like Edge
Add-TaskbarPinningApp("Microsoft Edge")
Remove-TaskbarPinningApp("Microsoft Edge")

add-or-remove-application-to-windows-10-taskbar's People

Contributors

gunnarhaslinger avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.