M
Montinator
Guest
In previous versions of Windows 10, I was able to use PowerShell to pin applications to the Start Menu and Taskbar, which was a HUGE help.
In Windows 10 1909, Microsoft appears to have blocked this feature, and I have not seen any way around this, scouring the internet for hours on end.
Here is a PowerShell one-liner to pin the applications to the Start Menu:
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq "Windows PowerShell"}).Verbs() | ?{$_.Name.replace('&','') -match 'Pin to Start'} | %{$_.DoIt()}
It works in previous OS builds, but in 1909 I get this error:
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At line:1 char:208
+ ... s() | ?{$_.Name.replace('&','') -match 'Pin to Start'} | %{$_.DoIt()}
+ ~~~~~~~~~
+ CategoryInfo : OperationStopped: ) [], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException
This one-liner shows the available verbs to use, and '&Pin to Start' is listed (basically options available when you right-click a shortcut):
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq "Windows PowerShell"}).Verbs()
Output:
Application Parent Name
----------- ------ ----
Open
Open file location
Open new window
Run as administrator
Run as different user
Uninstall
&Pin to Start
Create &shortcut
It works if you replace the 'Pin to Start' with any available verbs like Open, Properties, Run as administrator, etc. on 1909, but they broke the pin verb. The only documentation from Microsoft that I was able to find is to use Export-StartLayout and Import-StartLayout, but this only affects the Default User, for new users. I need to be able to automatically pin applications to existing users in a deployment script.
Continue reading...
In Windows 10 1909, Microsoft appears to have blocked this feature, and I have not seen any way around this, scouring the internet for hours on end.
Here is a PowerShell one-liner to pin the applications to the Start Menu:
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq "Windows PowerShell"}).Verbs() | ?{$_.Name.replace('&','') -match 'Pin to Start'} | %{$_.DoIt()}
It works in previous OS builds, but in 1909 I get this error:
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
At line:1 char:208
+ ... s() | ?{$_.Name.replace('&','') -match 'Pin to Start'} | %{$_.DoIt()}
+ ~~~~~~~~~
+ CategoryInfo : OperationStopped: ) [], UnauthorizedAccessException
+ FullyQualifiedErrorId : System.UnauthorizedAccessException
This one-liner shows the available verbs to use, and '&Pin to Start' is listed (basically options available when you right-click a shortcut):
((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq "Windows PowerShell"}).Verbs()
Output:
Application Parent Name
----------- ------ ----
Open
Open file location
Open new window
Run as administrator
Run as different user
Uninstall
&Pin to Start
Create &shortcut
It works if you replace the 'Pin to Start' with any available verbs like Open, Properties, Run as administrator, etc. on 1909, but they broke the pin verb. The only documentation from Microsoft that I was able to find is to use Export-StartLayout and Import-StartLayout, but this only affects the Default User, for new users. I need to be able to automatically pin applications to existing users in a deployment script.
Continue reading...