Link to home
Start Free TrialLog in
Avatar of amoos
amoos

asked on

need a script to find old user folders

i am trying to write a script that will find folders on a file server that have no AD account attached to them.  

for example we have user1 map their home directory which is stored on another file server so if we delete that user the directory is on another server

but all usernames match the directories

so user1 has the directory user1
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amoos
amoos

ASKER

thank you.  will this delete folders that have no user account?

user one maps there home directory from another server, i.e. AD is on one server and the home directories are on another.

have a person who deleted a lot of accounts but did not delete thier home directories to so what i am looking for is a script or program that will find the directories that dont have AD accounts associated with them

tons of thanks in advance
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of amoos

ASKER

and what script could i use?  i am new to scripting.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial