您的位置:首页 > 其它

How to create security string in exchange cmdlet

2010-03-09 11:14 417 查看
When create a new mailbox or any other command which needs input password, you may create this variable which can be used as the value of the parameter "-Password".

[PS] D:/Windows/System32>$pwd = Read-Host "asd" -AsSecureString
asd: *******

[PS] D:/Windows/System32>New-Mailbox -Name user1 -Database "First Storage Group/Mailbox Database" -UserPrincipalName user1@irkgai-dom.extest.microsoft.com -Password $pwd

Name Alias ServerName ProhibitSendQuota
---- ----- ---------- ---------------
user1 user1 exch-i-856 unlimited
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: