delete Orphaned Roaming Profiles using powershell

Andy Doe
Andy Doe used Ask the Experts™
on
Hi does anyone have a powershell script that could be used to remove any orphaned (account Unknown) Roaming profiles from terminal servers.

the script must not delete any local profiles and should only remove profiles which show up as account unknown in the user profiles area. in windows server 2008 r2.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
CEO Faru Bonon IT /Top Rated Freelancer on Upwork / Photographer
Awarded 2018
Distinguished Expert 2018
Commented:
PberSolutions Architect

Commented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: Jose [MCSE] Ortega C (https:#a42361965)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Pber
Experts-Exchange Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial