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

10

u/[deleted] Jul 24 '19

delprof2...

8

u/[deleted] Jul 24 '19

Or you know without any dependencies at all and almost no overhead.

5

u/dextersgenius Jul 24 '19

DelProf2 is no longer supported. Hasn't been updated in 6 years and has some issues with Windows 10. The author himself stated that he can't be arsed to fix then as he claims its a Microsoft issue and he shouldn't have to work around it. Either way, I wouldn't recommend using that on production Windows 10 machines, especially if you're using UE-V profiles.

0

u/adhdasf23423 Jul 24 '19

sucks

1

u/[deleted] Jul 24 '19

Why make things needlessly complex with a long script?

4

u/adbertram Jul 24 '19

One line of PowerShell isn’t a long script.

0

u/[deleted] Jul 24 '19

Sure if you are just deleting one profile

1

u/adbertram Jul 24 '19

It honestly would still be only 1-2 lines with PowerShell. You'd simply not limit it to just one like I did.

1

u/adhdasf23423 Jul 25 '19

Ok it doesn't suck, but you're suggesting replacing a 1 line script with... another 1 line script.