Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Permission issue with SCCM and Active Directory

  • Thread starter Thread starter ikkhatri
  • Start date Start date
  • Replies Replies 2
  • Views Views 5K
Status
Not open for further replies.

ikkhatri

Active Member
Messages
35
Solutions
2
Reaction score
3
Points
8
Hi Guys,
Reaching out for some assistance.
I have created a config baseline/item where the discovery checks to see if a machine is part of the security group.
If the evaluation is true, it moves the device to another OU.
Problem:
Move-ADObject : Access is denied
At line:7 char:1
+ Move-ADObject -Identity "$Identity" -TargetPath $OUTargetPath
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (CN=00155D01023C...inetwork,DC=com:ADObject) [Move-ADObject], Unauth
orizedAccessException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.UnauthorizedAccessException,Microsoft.ActiveDirectory.Man
agement.Commands.MoveADObject

start-transcript : Transcription cannot be started.
At line:10 char:1
+ start-transcript "C:\Windows\temp\remediationscript.log"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Start-Transcript], PSInvalidOperationException
+ FullyQualifiedErrorId : CannotStartTranscription,Microsoft.PowerShell.Commands.StartTranscriptCommand

Focus:
Move-ADObject : Access is denied
I can confirm the SCCM Server$ Computer Account has full control on System Management container and also in AD (domain root level).
Network access account is using its own dedicated service account.
When I use my domain admin account and run the script it works fine, so I know this is a permission issue. But how do I fix this ?

Thanks.
 
Solution
What do you mean the you are using a NAA? How are you expecting a CI to use it?
What does your CI look like?
Have you tested your CI using the local system account? https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/
Disregard the NAA part. Since I already had a package to run powershell in software center, I ran powershell (which uses the SYSTEM account) and then tested the script that way. I overlooked something, by granting my $SCCMSERVERCOMPUTER access to AD this was resolved.

Thanks
Hi Guys,
Reaching out for some assistance.
I have created a config baseline/item where the discovery checks to see if a machine is part of the security group.
If the evaluation is true, it moves the device to another OU.
Move-ADObject : Access is denied
I can confirm the SCCM Server$ Computer Account has full control on System Management container and also in AD (domain root level).
Network access account is using its own dedicated service account.
When I use my domain admin account and run the script it works fine, so I know this is a permission issue. But how do I fix this ?
What do you mean the you are using a NAA? How are you expecting a CI to use it?
What does your CI look like?
Have you tested your CI using the local system account? https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/
 
What do you mean the you are using a NAA? How are you expecting a CI to use it?
What does your CI look like?
Have you tested your CI using the local system account? https://www.recastsoftware.com/resources/how-to-access-the-local-system-account/
Disregard the NAA part. Since I already had a package to run powershell in software center, I ran powershell (which uses the SYSTEM account) and then tested the script that way. I overlooked something, by granting my $SCCMSERVERCOMPUTER access to AD this was resolved.

Thanks
 
Solution
Status
Not open for further replies.

Forum statistics

Threads
7,163
Messages
27,961
Members
18,251
Latest member
Twc

Trending content

Back
Top