[Samba] windows shortcut for "Group Policy Editor"

Rowland Penny rowlandpenny at googlemail.com
Thu Oct 30 03:25:01 MDT 2014

On 30/10/14 08:34, ?icro MEGAS wrote:
> Hey all,
> according to the whitepaper http://technet.microsoft.com/en-us/library/cc736591%28v=ws.10%29.aspx
> I would like to a windows shortcut on the desktop that allows me to open and run the "Group Policy Editor"
> *for my samba4/AD domain*.
> The shortcut command should be:
> "gpedit.msc /gpobject:"LDAP://CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=mydom,
> DC=example,DC=com"
> I certainly need the correct ID og the object, but how do I find it out? I need to replace the string
> {31B2F340-016D-11D2-945F-00C04FB984F9} shown on that example with the correct one of my samba4/AD domain.
> Any clues how to find out that string?
> Mirco.
If you really want to know, try this command on the server:

ldbsearch -H /var/lib/samba/private/sam.ldb -b 
'CN=Policies,CN=System,CN=mydom,DC=example,DC=com' dn

It should print out the info you require.


More information about the samba mailing list