r/PowerShell • • Jul 23 '19

Use PowerShell delete a user profile (step-by-step guide)

https://adamtheautomator.com/powershell-delete-user-profile/?utm_source=reddit&utm_medium=social&utm_campaign=newblogpostnotifications
120 Upvotes

59 comments sorted by

View all comments

Show parent comments

1

u/jatorres Jul 24 '19

Really? I thought PowerShell was the end all, be all of Windows automation? Any guides / best practices for a GPO that would do this?

4

u/[deleted] Jul 24 '19

GP is like a shotgun that can double as a rifle. PS is more like a snipper rifle that can (sometimes) double as a shotgun.

4

u/billy_teats Jul 24 '19

A shotgun is not going to hit every single bird in a flock. PS will for sure.

GP hunts. It’s going to find you and get you. Just like everyone else. If you’re around when PS goes off though, ain’t nothin you can do to stop it

0

u/adbertram Jul 24 '19

I disagree. Sure, if you forget to add a filter of some kind, PS can destroy the world but one of the best quotes I've heard is "Automation is the only way to fail at scale". With great power comes great responsibility. :)