Configure the Drive Maps preference so that it actively removes the legacy mapping instead of only adding the new one, and ensure no other GPO or script is re‑creating the old drive.
Use this approach:
- In Group Policy Management Editor, edit the existing GPO that handles the login drive mappings.
- Under User Configuration → Preferences → Windows Settings → Drive Maps, locate the old drive mapping item that points to the retired file server.
- For that legacy mapping item, set Action to Delete (or create a new Drive Map item with the same drive letter and old path and set its Action to Delete).
- Keep the new DFS mapping as a separate Drive Map item using Create or Replace for the same drive letter and the new DFS path.
- Run
gpupdate /forceon a test client, sign out and sign back in, and verify that only the DFS mapping remains. - If the old mapping still appears, use Process Monitor as described to identify any logon script or additional GPO that is issuing a
net usefor the old path and remove or update that script.
If Resultant Set of Policy (RSoP) still shows the old Drive Maps preference after removal or disabling, enable the Configure Purge RSOP behavior policy so that stale Drive Maps data is purged:
- In the same GPO, go to User Configuration → Policies → Administrative Templates → All Settings.
- Open Configure Purge RSOP behavior.
- Set it to Enabled and set the value to
0x00000001. - Apply the policy and refresh Group Policy on clients.
This combination ensures the legacy mapping is explicitly deleted, the new DFS mapping is applied, and stale RSoP data does not mislead troubleshooting.
References: