Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $appname = "Microsoft Edge"
- ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'Unpin from taskbar'} | %{$_.DoIt(); $exec = $true}
- $appname = "Store"
- ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() | ?{$_.Name -eq $appname}).Verbs() | ?{$_.Name.replace('&','') -match 'Unpin from taskbar'} | %{$_.DoIt(); $exec = $true}
- $appnames = "^Microsoft Edge$|^Store$"
- ((New-Object -Com Shell.Application).NameSpace('shell:::{4234d49b-0245-4df3-b780-3893943456e1}').Items() |
- Where-Object{$_.Name -match $appnames}).Verbs() |
- Where-Object{$_.Name.replace('&','') -match 'Unpin from taskbar|Von "Start" lösen'} |
- ForEach-Object{$_.DoIt(); $exec = $true}
Add Comment
Please, Sign In to add comment