Created
May 21, 2019 04:04
-
-
Save nirinium/cdaebe1bde552d704d322102fc052d39 to your computer and use it in GitHub Desktop.
win10optimize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## ENUM ALL START MENU ITEMS | |
(New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | %{$_.Name} | sort | |
## UNPIN ALL FROM STARTMENU | |
(New-Object -Com Shell.Application). | |
NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}'). | |
Items() | | |
%{ $_.Verbs() } | | |
?{$_.Name -match 'Un.*pin from Start'} | | |
%{$_.DoIt()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment