Azure Runbook New-ADUser failing with permission denied even though domain admin

225 Views Asked by At

Hey guys new to runbooks, but i am setting one up to add users to my on premise server. i already have a hybrid worker setup and is working best i can tell. when i run New-ADUser i get the standard permision denied even though i am using my domain admin account(just for testing).

The error seems the exact same as if i had tried to run the command from powershell, but not ran as administrator. im thinking this is the issue and i am just to new to know how to fix that, or if this is by design.

[91mNew-ADUser: [91mAccess is denied[0m

1

There are 1 best solutions below

1
James Wright On

I didnt delegate control over the users OU, that was the issue.