-
Book Overview & Buying
-
Table Of Contents
Microsoft Exchange Server 2013 PowerShell Cookbook: Second Edition - Second Edition
By :
There are several PowerShell and Exchange Management Shell cmdlets that provide a credential parameter that allows you to use an alternate set of credentials when running a command. You may need to use alternate credentials when making manual remote shell connections, sending e-mail messages, working in cross-forest scenarios, and more. In this recipe, we'll take a look at how you can create a credential object that can be used with commands that support the -Credential parameter.
To create a credential object, we can use the Get-Credential cmdlet. In this example, we store the credential object in a variable that can be used by the Get-Mailbox cmdlet:
$credential = Get-Credential Get-Mailbox -Credential $credential
When you run the Get-Credential cmdlet, you are presented with a Windows authentication dialog box requesting your username and password. In the previous example, we assigned the Get-Credential cmdlet...
Change the font size
Change margin width
Change background colour