mattleeprice
IS-IT--Management
Good Day,
We have several thousand users in our Active Directory. I have created a PS script to pull all of the users into a CSV file.
In a share we have folder for each user - about two thousand of these folders are old and need to be removed.
I would like to compare my CSV file of active users against the list of folder names in the share, listing all of the folders that are old and need to be removed.
I'm about at my wits end trying to get my script to run properly.
Any tips on a proper way to script this would be great.
Kindest Regards,
Matt
We have several thousand users in our Active Directory. I have created a PS script to pull all of the users into a CSV file.
In a share we have folder for each user - about two thousand of these folders are old and need to be removed.
I would like to compare my CSV file of active users against the list of folder names in the share, listing all of the folders that are old and need to be removed.
I'm about at my wits end trying to get my script to run properly.
Any tips on a proper way to script this would be great.
Kindest Regards,
Matt