mtniehaus / RenameComputer

Rename a Hybrid AADJ computer after an Autopilot deployment
MIT License
51 stars 18 forks source link

Access is Denied #1

Open Moses1695 opened 3 years ago

Moses1695 commented 3 years ago

Hi @mtniehaus ,

I get an error message when i try to run the script. I have created a separated OU and placed the computer objects there to be renamed.

Kindly suggest. access is denied

Regards, Moses

Moses1695 commented 3 years ago

Also, SELF access has also been provided to the OU.

Moses1695 commented 3 years ago

Hi @mtniehaus

Kindly assist.

Regards, Moses

ismaelrodlla commented 3 years ago

Hi @Moses1695 did you get to resolve this issue?

Hypnotix802 commented 6 months ago

Also having this issue, any resolution? @Moses1695 @mtniehaus

mtniehaus commented 6 months ago

SELF is only going to work when the script is run as LocalSystem. The error above shows it running interactively, in which case the logged-on user would need to have rights.