Disable My Documents Redirect GPO in Server 2008
Posted on 2011-03-18
We have a 2008 Domain controller that currently has the My Documents Redirect GPO configured. This redirects an XP machine Mydocs to \\fileserver\username. I want to remove this GPO and revert the My Documents folder back to the default on 50 PCs.
When I remove the GPO, reboot one of my PCs, I right click on the My Documents icon, but it still shows \\fileserver\username
I could edit this by hand, or click the Restore to Default button, but I do not want to have to go to all 50 PCs to do this.
I tried altering HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal, and then rebooting, but this had no effect.
It seems that the "real" registry entry is located in HKU\S-1-21-######\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Personal, were ##### is a very long numerical string. Unfortunately, this numerical string is different on each PC, so this is not an option.
Is there a VBScript someone knows that could do this, or some other way?