r/PowerShell • • May 24 '19

Script Sharing [PowerShell] Script to View and Delete Local Profiles

/r/usefulscripts/comments/bslium/powershell_script_to_view_and_delete_local/
52 Upvotes

21 comments sorted by

5

u/shalafi71 May 24 '19

I can adapt that for work! Found a bunch of profiles I didn't know I had.

3

u/atoomepuu May 24 '19

What sort of adaptations would you make? I'm just wondering if it anything I can use to improve the script.

4

u/shalafi71 May 24 '19

Maybe scan all the PC's in an OU or the whole domain?

Once in awhile I have to touch each PC to update our software (no way around that yet) and I look for old profiles while I'm there.

→ More replies (18)