Hello,
In our environment we have a lot of user home dirs but the users are already deleted from active directory.
Can anybody help writing a script which checks the userdir and if there is a user account for that homedir? I wan't to log that in a tekst file or even rename the directory's which don't have a useraccount. The useraccounts in active directory are seperated in different OU's and subOU's
I realy don't have a clue how to do this.
Thanks in advance
In our environment we have a lot of user home dirs but the users are already deleted from active directory.
Can anybody help writing a script which checks the userdir and if there is a user account for that homedir? I wan't to log that in a tekst file or even rename the directory's which don't have a useraccount. The useraccounts in active directory are seperated in different OU's and subOU's
I realy don't have a clue how to do this.
Thanks in advance