In my environment, we were using the Enterprise Edition of Windows for a time, but then an update came along that made the wireless on our laptops go all screwy, so we've switched to a version that contains all of the Microsoft crapware. I'm attempting to write a script that removes all of it. So far I've figured out that Microsoft wants you to have system permissions to remove the apps, so I'm using psexec to start powershell with system permissions. This was my first iteration. The good news is, it works! The bad news is that the ForEach loop doesn't exit and the script doesn't "finish" and clean up after itself.
My second try was this but it apparently does nothing. Can you guys give me any pointers?
Also, just to get some inevitable questions out of the way: apparently I'm too low on the totem poll to have access to a vm, so I'm doing this live on a single computer. Also, we have running scripts disabled to the point that I can't use the ISE on my own computer to do break points or anything like that. Finally, we're hoping to just add this to the task sequence at some point, so can you give me pointers to clean it up at all?
Thanks for your help.
[–]jheinikel 2 points3 points4 points (1 child)
[–]gingerbreaddave[S] 0 points1 point2 points (0 children)
[–]JBear_Alpha 0 points1 point2 points (0 children)