I still hope to be WOW'd by a GPO setting some day, but until then...
#kill start menu right-click context menu
$folder = "C:\Users\Default\AppData\Local\Microsoft\Windows"
mkdir $folder\WinX.org
Move-Item -Path $folder\WinX\group[2-3] -Destination $folder\WinX.org
Formatted for web with http://codeformatter.blogspot.com/
Before:
After a log-off and back in (my user profiles are non-persistent):
Note: If you have existing persistent user profiles, you'll need to go through each profile and remove the Group# folder you're targeting. If you need to update all users, here's that script too - you're welcome.
$users = (Get-ChildItem C:\Users -Directory -Exclude "Public", "Administrator").FullName
foreach ($user in $users) {
$folder = "$($user)\AppData\Local\Microsoft\Windows"
mkdir $folder\WinX.org
Move-Item -Path $folder\WinX\group[2-3] -Destination $folder\WinX.org
}
Formatted for web with http://codeformatter.blogspot.com/
No comments:
Post a Comment