Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Group Policy in a domain that have lots of drive mapping settings. I would like to change the path for a lot of these servers in this gpo with powershell if possible. I know i could do this via the GPMC, but would prefer to do it programtically. I have looked at the grouppolicy powershell module from microsoft (get-gpo and friends) but i only seem to be able to change registry entrys and permissions on the policys, not the actual path for the drivemapping. any ideas? Thanks!

share|improve this question
How are you mapping drives? Logon script or Group Policy Preference? – charleswj81 Jan 14 '14 at 3:12

To change GPOs you've got to use the Set-GPPrefRegistryValue for preferences or Set-GPRegistryValue for other values. All a GPO does is set registry values so the paths are actually just registry values.

share|improve this answer
Those cmdlet's only change registry-based settings. GPP drive mappings are stored in an XML file (Drives.xml). – charleswj81 Jan 14 '14 at 4:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.