Simple script to check the presence of the home directory.

Today I has an issue where I discovered that a user had no homedir. He was well set in Active Directory, but was not present on the fileserver. To check if there were multiple users with this issue I created a simple script.

It checks if there is a set homedir, and if so whether the directory exists on the file server. If nothing is set in Active Directory, he gives this alert. Is the path it set, but the directory does not exist on the file server, also he notifies, as well as the date the account was created. That way you can easily see if there might be a problem arise.

And yes,, It can all be more extensive and beautiful. Perhaps I script continue expanding in the future, but for now it was enough for me.

The script is here to download.

Leave a Reply