mrfite
asked on
Roaming Profiles - AD Attribute
I am stuck.
I am trying to put together a termination script for former employees.
The issue is that we use gpo's to redirect their profiles to different servers. One other issue is that when a user's username changes (ie married, divorced, etc), we continue to redirect their roaming profile to the old profile created under the original user account.
I have tried using the following AD attributes:
msTSProfilePath
msTSHomeDirectory
ProfilePath
psbase.InvokeGet("terminal servicesHo meDirector y")
psbase.InvokeGet("terminal servicespr ofilepath" )
The above all show as blank.
If we manually input the users information in AD under Remote Desktop Services Profile, the correct information is only shown under psbase.InvokeGet("terminal servicesHo meDirector y") and psbase.InvokeGet("terminal servicespr ofilepath" )
Is there an AD attribute that holds the current roaming profile and roaming home directory information even if that location is redirected based on a GPO?
***The purpose of the script is to find a user's roaming profiles and roaming home directory on a file server and then to move those folders to an archive server after the user is no longer with us.
I am trying to put together a termination script for former employees.
The issue is that we use gpo's to redirect their profiles to different servers. One other issue is that when a user's username changes (ie married, divorced, etc), we continue to redirect their roaming profile to the old profile created under the original user account.
I have tried using the following AD attributes:
msTSProfilePath
msTSHomeDirectory
ProfilePath
psbase.InvokeGet("terminal
psbase.InvokeGet("terminal
The above all show as blank.
If we manually input the users information in AD under Remote Desktop Services Profile, the correct information is only shown under psbase.InvokeGet("terminal
Is there an AD attribute that holds the current roaming profile and roaming home directory information even if that location is redirected based on a GPO?
***The purpose of the script is to find a user's roaming profiles and roaming home directory on a file server and then to move those folders to an archive server after the user is no longer with us.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.