powershell - Cannot Create new Group Policy Object (GPO) -
powershell - Cannot Create new Group Policy Object (GPO) -
i tasked create script can automated configurations of grouping policy objects (gpo) using powershell. i'm creating new gpo using command:
new-gpo -name "foo"
but, whenever seek create new gpo, encounter error:
new-gpo : access denied. (exception hresult: 0x80070005 (e_accessdenied)) @ line:1 char:1 + new-gpo -name "foo" + ~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : notspecified: (:) [new-gpo], unauthorizedaccessexception + fullyqualifiederrorid : system.unauthorizedaccessexception,microsoft.grouppolicy.commands.newgpocommand
i searched error code behind this, , has authorization of access behind this. tried many things downloading rsat , other applications, still, can't allow user create new gpo. help appreciated. in advance.
if read documentation says: "only domain administrators, enterprise administrators, , members of grouping policy creator owners grouping can create gpos. these users must run windows powershell in elevated state."
powershell group-policy gpo unauthorizedaccessexcepti
Comments
Post a Comment