Skip to content

Instantly share code, notes, and snippets.

@nirinium
Created May 21, 2019 04:04
Show Gist options
  • Save nirinium/cdaebe1bde552d704d322102fc052d39 to your computer and use it in GitHub Desktop.
Save nirinium/cdaebe1bde552d704d322102fc052d39 to your computer and use it in GitHub Desktop.
win10optimize
## 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