New-ADOrgranizationalUnit - Access Denied
i work on powershell script create ou's when execute script access denied error.
i have launched powershell in admin mode , logged in administrator of domain, using domain administrator account.
ps c:\users\administrator> new-adorganizationalunit -name useraccounts -path "dc=corp,dc=viamonstra,dc=com" new-adorganizationalunit : access denied @ line:1 char:1 + new-adorganizationalunit -name useraccounts -path "dc=corp,dc=viamonstra,dc=com" + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : permissiondenied: (ou=useraccounts...amonstra,dc=com:string) [new-a dorganizationalunit], unauthorizedaccessexception + fullyqualifiederrorid : activedirectorycmdlet:system.unauthorizedaccessexception,microsoft. activedirectory.management.commands.newadorganizationalunit
twitter: @dguilloryjr linkedin: http://www.linkedin.com/in/dannyjr facebook: http://www.facebook.com/#!/dguilloryjr
is domain name corp.viamonstra.com ? or domain viamonstra.com , corp ou? trying figure out if have syntax correct domain.
brian / chevynovaln
Windows Server > Directory Services
Comments
Post a Comment