Link to home
Start Free TrialLog in
Avatar of mrfite
mrfiteFlag for United States of America

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("terminalservicesHomeDirectory")
psbase.InvokeGet("terminalservicesprofilepath")

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("terminalservicesHomeDirectory") and psbase.InvokeGet("terminalservicesprofilepath")

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
Avatar of yo_bee
yo_bee
Flag of United States of America 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