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
[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
相关文章推荐
- How to re-create STM File in Exchange 2000/2003
- How to create custom methods for use in spring security expression language annotations
- [转]How to use String.Format in PowerShell?(如何在PowerShell中使用string.format?)
- How to convert from string to datetime in sql server? - Sealyu - BlogJava
- How to create Oracle 11g R2 database manually in ASM?
- How To Create Conditional Log Statements in Xcode
- How to create scheduler in liferay portlet
- How To Create A Client Server Application In Minutes[如何在几分钟的时间里编写一个客户机/服务器控制台程序]
- how to create virtual network in OS X 10.9
- How To contain multiple fileds in the querystrig, DataNavigateUrlFormatString=xxx.asp?ID={0}&Name={1}
- "HOW TO: Create a Smooth Progress Bar in Visual C# .NET"的学习笔记
- How to compare String in Java?
- How to split a string in C++
- Ex2010-19 How to Run the Exchange Management Shell EMS in PowerShell
- How to create VO s and VLs dynamically in OAF
- How to use libcurl in C++ with std::string
- How to create a project with existing folder of files in Visual Studio?
- How to Create a Secure Login Script in PHP and MySQL
- How to create a secured and locked folder in XP
- how to handle the c string and comments in flex