Your network contains one Active Directory domain named contoso.com.
The domain contains three users named User1, User2, and User3.
You need to ensure that the users can log on to the domain by using the user principal names
(UPNs) shown in the following table.
What should you use?
A.
the Set-ADDomain cmdlet
B.
the Add-DNSServerSecondaryZone cmdlet
C.
the Setspn command
D.
the Set-ADUser cmdlet
Explanation:
https://technet.microsoft.com/en-us/library/ee617215.aspx
Set-ADUser is correct, but first the upn suffixes have to be added using Set-ADForest:
https://technet.microsoft.com/nl-nl/library/dd391925%28v=ws.10%29.aspx
Fortunately, that’s not a possible answer here.
Agree with you ms
Set-ADUser is correct, and funny enough,I had to do this at work the other week by running the following:
Get-ADUser -filter “*” -SearchBase “DC=MyDomain,DC=local” | Select-Object name,samaccountname,userprincipalname | Where-Object {$_.userprincipalname -eq $null -And $_.samaccountname -like “*”} | % {$CompleteUPN = $_.SamAccountName + “@Domain.local” ; Set-ADUser -Identity $_.samaccountName -UserPrincipalName $CompleteUPN }