Forum Discussion
Anonymous
4 years agoNot applicable
Active Directory Notes\Info field
Hello! I am hoping someone can help me. I am trying to build a report using the Active Directory group table. I have all the attributes I need except for one which is the notes field. Within Acti...
Anunakin
2 years agoNew Member
I found solution for it:
$params = @{
SamAccountName = $cod
Name = "$name $sname"
DisplayName = "$name $sname"
GivenName = $name
Surname = $sname
UserPrincipalName = "[email protected]"
AccountPassword = (ConvertTo-SecureString "NewPass--?" -AsPlainText -Force)
Enabled = $True
Path = $OU
ChangePasswordAtLogon = $True
PassThru = $True
Description = "$cod"
Office = "$office"
OtherAttributes = @{ info="$codSO" }
}
$ADUser = New-ADUser @paramsYou need give in this format:
OtherAttributes = @{ info="$codOS" }