Set-AdmPwdReadPasswordPermission Identity Reference issue

ConstructionComputing 26 Reputation points
2022-03-21T18:28:19.773+00:00

I am attempting to deploy LAPS on a 2012R2 domain controller

I am running through microsoft's official configuration guide and I'm stuck at section 2.2.3

Set-AdmPwdReadPasswordPermission -OrgUnit <name of the OU to delegate permissions> -AllowedPrincipals <users or groups>

I am running this command, but it errors out

185356-image.png

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,080 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,818 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,354 questions
0 comments No comments
{count} vote

Accepted answer
  1. Thameur-BOURBITA 32,496 Reputation points
    2022-03-21T20:34:15.837+00:00

    Hi

    Are you sure that the group name is correct ?

    Try launch the following command:

    $AdminUser = Get-ADGroup -identity "domain administrators" -Server "domain.lan"
    
    $ADAccount = $AdminUser.SID.Translate([System.Security.Principal.NTAccount])
    
    Set-AdmPwdReadPasswordPermission -OrgUnit <name of the OU to delegate permissions> -AllowedPrincipals $ADAccount
    

    Please don't forget to mark helpful reply as answer


1 additional answer

Sort by: Most helpful
  1. SChalakov 10,261 Reputation points MVP
    2022-03-21T19:11:17.163+00:00

    Hi @ConstructionComputing ,

    can you please try putting also the domain name there:

    Set-AdmPwdReadPasswordPermission -OrgUnit <name of the OU to delegate permissions> -AllowedPrincipals "DomainNetBIOS\Domain Administrators"  
    

    Does this work?

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Stoyan Chalakov