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

20

u/[deleted] Jul 24 '19

[removed] — view removed comment

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?

19

u/[deleted] Jul 24 '19 edited Jul 24 '19

[removed] — view removed comment

3

u/jeshii Jul 24 '19

I used to have a server dedicated to running powershell scripts on a certain schedule via task scheduler when I was a sysadmin. Not that I disagree with using GPO (since its in the domain and therefore automatically redundant), but I think it's not exactly fair to say that powershell scripts can't be run automatically.