Hi All,

Below is a function I created to check and move home folders based on their status with in Active Directory.

I’ve added in some error handling of the move-item cmdlet so when the folder already exists in the target location it uses the copy-item and remove-item cmdlets dues to the way move-item handles existing folders.




Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: