I already have a great script (thank you) that monitors our HR system for adds/removes/changes of our staff and reflects those changes in AD via scheduled task.
I would like to setup a Business Rule that monitors "AFTER CHANGING LOGON NAME OF USER", the home directory of that user will be 'renamed' to the new logon name.
username = jsmith home drive = \\server\users\jsmith
user gets married and changes name to jblack. Existing daily script will pick up this change in the HR system and will amend the account (name, display name, logon name etc etc). HERE is where the business rule will be invoked and will rename the existing home drive folder (jsmith) to jblack
result - username = jblack home drive = \\server\users\jblack
Or, is there a more efficient way of doing this? Could I possibly incorporate it into the existing script?