With Active Directory we get two logon ids – the samaccountname and the user principal name (UPN). These can both be viewed on the Account tab of the user properties dialog Setting these attributes can be achieved like this $ou = "OU=England,DC=Manticore… Read the full text.