Consider the following scenario:
- You have a forest that contains several domains. For example, the forest contains contoso.com, child1.contoso.com, and child2.contoso.com.
- You set up a terminal server in one of the domains. For example, you set up a terminal server in contoso.com.
- You configure the terminal server to set a variable %userdomain% roaming profile path for users who try to log on the terminal server. For example, you configure the server to set \\server\share\%userdomain% as the roaming profile path.
In this scenario, the variable %userdomain% roaming profile path is not resolved correctly. For example, when users from child1.contoso.com or child2.contoso.com try to log on the terminal server, the roaming profile path is set to \\server\share\contoso.
This issue occurs when a user tries to log on the terminal server from a computer that is running one of the following operating systems:
- Windows 7
- Windows Server 2008 R2
- Windows Server 2008
- Windows Vista
Note: The expected roaming profile path is \\server\share\child1 when users from child1.contoso.com try to log on the terminal server and \\server\share\child2 when users from child2.contoso.com try to log on the terminal server.