To open gpmc.msc to a specific OU, use a string after the program call to specify which OU to open. Below is an example.
c:\WINDOWS\system32\gpmc.msc "/OU:LDAP://abcxyz.com/OU=FirstOU,OU=SecondOU,DC=abcxyz,DC=com"
I am customizing the gpmc.msc to meet tne needs of some users. To make it a little easier for them, I wanted to be able to open the gpmc.msc to a specific OU. The behaviour I am trying to replicate is from AD Users and Computers. When you right click on an OU and go to Properties, Group Policy, Open, it open GPMC in the same OU as you were in in Ad Users and Computers. Any idea how to do this directly on gpmc.msc?
To open gpmc.msc to a specific OU, use a string after the program call to specify which OU to open. Below is an example.
c:\WINDOWS\system32\gpmc.msc "/OU:LDAP://abcxyz.com/OU=FirstOU,OU=SecondOU,DC=abcxyz,DC=com"
Nice tip!