Setting and retrieving User properties

Retrieves or sets properties of the specified User object.


Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


Retrieve the values of all properties of the User named "Adam Sam" and displays them as a list:


$MyUser = Get-EmdbUser "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Users\Adam Sam"

$MyUser | Format-List *


Retrieve and display the value of the property FullName of the User "Adam Sam":


$MyUser = Get-EmdbUser "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Users\Adam Sam"

$MyUser.FullName


Set the value of the property FullName of the User "Adam Sam" to "Adam B. Sam" and propagate the change to the DSMDB using the method Update():


$MyUser = Get-EmdbUser "emdb:\rootDSE\Managed Users & Computers\solys.local\Chicago\ITService\Users\Adam Sam"

$MyUser.FullName = "Adam B. Sam"

$MyUser.Update()