#Import LAPs moduleimport-module ADMPwd.ps#Allow computers Set-AdmPwdComputerSelfPermission-OrgUnit "Workstation"#Set read rights for admin passwordsSet-AdmPwdReadPasswordPermission-Identity "ADPro Computers"-AllowedPrincipals "it_wrk_admins"#Display users who have rights to readFind-AdmPwdExtendedRights-Identity "ADPro Computers"#Show password for hostGet-AdmPwdPassword HOST
Schema Attributes:
ms-Mcs-AdmPwd – This attribute saves the computer’s administrator password.
ms-Mcs-AdmPwdExpirationTime – This attribute saves the password expiration timestamp.