Reputation: 1257
How can we set the field "Description" in the general section with the powershell cmdlet ?
I am using a powershell command in c# to do my modification. I tried to use the command "set-ADUser", but it don't look like valid command to call...
here's the command I tried :
// create the PowerShell command
var command3 = new Command("Set-ADUser");
command3.Parameters.Add("Identity", userprincipalname);
command3.Parameters.Add("Description", description);
And I have this error :
The term 'Set-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program.
Upvotes: 0
Views: 444
Reputation: 68331
Set-ADUser is from the ActiveDirectory module (RSAT tools). The Exchange 2013 cmdlets use Set-User, but Description is not one it's parameters, so you can't set/change that using just the Exchange cmdlets.
Upvotes: 1