Closed ixniz closed 3 years ago
Hi @ixniz, as long as the device that you are executing the DSC on is domain connected and is running PowerShell 5 or above, you can use the automatic PsDscRunAsCredential
property to specify your desired domain credentials for each resource. See Use Credentials with DSC Resource for further info.
Thanks, it worked like a charm! I had completely forgotten about that.
Closing this at this time.
Details of the scenario you tried and the problem that is occurring
Using the ADServicePrincipalName resource on a member server result in "Insufficient access rights to perform the operation".
Verbose logs showing the problem
Suggested solution to the issue
Add a Credential parameter, which would allow us to specify the Credentials when running on a server that is not a Domain Controller.
The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used