

Then the following Logon script saved as. So, First we need to assign a GPO to the OU with the Servers we want the policy to apply, the GPO must have enabled loopback processing in

How to map redirect user profile folders terminal server client login script gpo Matthias, I've tried GPP but it's the same issue, as %clientname% does not exist.Īnyway, I resolved it using a vbs logon script which I post bellow with a couple of search tags in case someone needs it. Martin, I've tried both options you suggested and they didn't work (check my previous post for the reasons) Assigning the GPO to a OU containing the users also works, but I don't know how to use a WMI filter to apply it only to users logging in to "Server A"Īny ideas? maybe a delay so the clientname bvariable gets populated, or a WMI filter that I can use to allow the policy to run in computers members of the security group "server A" belongs to. Tried using a login script with mklink, but I'll have to remove the user folders in "Server A" before doing the link, and doesn't seem like the right thing to do Replacing %clientname% for "Client1" works, but I actually have more than 1 client, and want it to work regardless of the client from which the user is connecting. Why is not working and another things I tried: - The %clientname% variable gets populated after the Group policy runs, so it's not able to find the network share and it fails. "\\%clientname%\Users$\%username%\Desktop" "Policies -> Windows Settings -> Folder Redirection -> Desktop" = Basic (Redirect everyone's folder to the same location) "Policies -> Administrative Templates -> System/Group Policy -> Configure user Group Policy loopback processing mode" = Enabled (Merge) Linked a GPO to the OU containing "Server A" with the following settings: Put each server in a different OU in Active Directory (they also belong to different security groups) What I think should have worked, but it's not: When Client connects through RDP to "Server B", no folder is redirected When Client connects through RDP to "Server A", all user folders (Documents, Videos, Music, Pictures, Desktop) get redirected to the equivalent folders in the Client.Įxample: "C:\Users\Username\Desktop" in "Server A", redirects to "C:\Users\Username\Desktop" in "Client" The scenario is more complex, but I'll summarize what I'm trying to accomplish. After a couple of days reading online and doing some testing, I decided to ask here as I'm unable to solve the issue I'm having.
