繁体   English   中英

在Exchange 2013中使用Powershell cmdlet设置说明

[英]Set Description with the powershell cmdlet in exchange 2013

我们如何使用powershell cmdlet在常规部分中设置字段“描述”?

我在c#中使用powershell命令进行修改。 我试图使用命令“ set-ADUser”,但看起来好像不是有效的命令来调用...

这是我尝试的命令:

// create the PowerShell command
var command3 = new Command("Set-ADUser");
command3.Parameters.Add("Identity", userprincipalname);
command3.Parameters.Add("Description", description);

我有这个错误:

The term 'Set-ADUser' is not recognized as the name of a cmdlet, function, script file, or operable program.

Set-ADUser来自ActiveDirectory模块(RSAT工具)。 Exchange 2013 cmdlet使用Set-User,但是Description不是它的参数之一,因此您不能仅使用Exchange cmdlet来设置/更改它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM