We are in the process of implementing least privilege rights in Active Directory for our desktop team, and cannot find authoritative information on what rights are required for facilitating this change.
We set up auditing on a test computer object in active directory to see what attributes need to be modified, but when we rename a computer we noticed something we didn't expect. The Rename-Computer commandlet in powershell is making an SMB call instead of an LDAP request, and the security log does not capture the access denied message we see in the SMB call. Since the SMB call is encrypted, all we see is the access denied message. At this point we cannot see how we can find the correct attributes to facilitate the rename.
We are fully aware that if we give Read all properties / Write all properties, the rename will work, but there are attributes on the computer object that the group should not be able to read. Where can we go for a real answer to this question?
We are using DSACLS for implementation of changes. The following line works for adding workstations to the domain, and moving them between OUs, but does not work for renaming.
Call:WriteDesktopAcls "CN=Computers,OU=Contoso,DC=Com":WriteDesktopAcls
::##################################
::Create and Delete Workstations
::##################################
DSACLS.exe "%~1" /I:T /G contoso\DesktopSupport:CC;computer;
DSACLS.exe "%~1" /I:T /G contoso\DesktopSupport:DC;computer;
::####################################################
::Permissions needed to add workstations to the domain
::####################################################
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:CALCGRSDDTRC;;computer
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:WP;description;computer
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:WP;sAMAccountName;computer
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:WP;displayName;computer
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:WP;userAccountControl;computer
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:WS;"Validated write to service principal name";computer
DSACLS.exe "%~1" /I:S /G contoso\DesktopSupport:WS;"Validated write to DNS host name";computer
goto:eof