PS C:\> .\Get-AdmUnmanagedAccount.ps1
DistinguishedName : CN=Redis Database,OU=WebFarm,OU=Services,DC=local,DC=lab
Name : Redis Database
ObjectGUID : 3c4a0c4b-c5fb-420d-adf5-a64f28a1a887
SID : S-1-5-21-3484999034-4104884900-4815162342-3640
UserPrincipalName : db.redis@local.lab
PS C:\> .\Get-AdmUnmanagedAccount.ps1 -Properties canonicalName,samAccountName
CanonicalName : local.lab/Services/WebFarm/Redis Database
DistinguishedName : CN=Redis Database,OU=WebFarm,OU=Services,DC=local,DC=lab
Name : Redis Database
ObjectGUID : 3c4a0c4b-c5fb-420d-adf5-a64f28a1a887
SID : S-1-5-21-3484999034-4104884900-4815162342-3640
UserPrincipalName : db.redis@local.lab
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -User db.redis
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -Group 'Database Service Accounts'
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -Group 'Database Service Accounts' -Recursive
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -OrganizationalUnit 'OU=WebFarm,OU=Services,DC=local,DC=lab'
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -OrganizationalUnit 'OU=WebFarm,OU=Services,DC=local,DC=lab' -Subtree
PS C:\> .\Get-ADUser -LdapFilter '(userPrincipalName=www.*)' | .\Add-AdmUnmanagedAccount.ps1
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -Group 'Database Service Accounts' -Replace
PS C:\> .\Remove-AdmUnmanagedAccount.ps1 -User db.redis
PS C:\> .\Remove-AdmUnmanagedAccount.ps1 -Group 'Database Service Accounts'
PS C:\> .\Remove-AdmUnmanagedAccount.ps1 -OrganizationalUnit 'OU=WebFarm,OU=Services,DC=local,DC=lab'
PS C:\> Get-ADUser -LdapFilter '(userPrincipalName=www.*)' | .\Remove-AdmUnmanagedAccount.ps1
PS C:\> .\Clear-AdmUnmanagedAccount.ps1
PS C:\> .\Add-AdmUnmanagedAccount.ps1 -Group 'Adaxes Unmanaged Accounts' -Replace