Datasheet

Part I: PowerShell for Exchange Fundamentals
30
All scripts included with Exchange Server 2007 have been code signed by Microsoft to ensure the scripts
comply with the execution policy model for ensuring scripts can be accounted for before execution. The
default execution policy setting for Exchange Management Shell is
RemoteSigned . This level allows you
to run scripts you create locally and warns you when scripts provided by Microsoft have been altered.
To learn more about Windows PowerShell execution policies, type
Get-Help about_signing .
Preparing Exchange Management Shell
Before continuing on to the rest of the book, take a moment to review the following procedure for
customizing your Exchange Management Shell console application. You ll find these options convenient
when trying the examples shown in the following chapters.
1. Navigate to the Exchange Management Shell shortcut: from the Start menu, select All
Programs
Exchange Server 2007 and then right - click Exchange Management Shell and
select Properties.
2. Select the Options tab and make the following modifications:
a. To make it possible to select, copy, and paste text in the console screen, under Edit Options
click to select the QuickEdit Mode checkbox. With this option selected, you can select text
in the console window by dragging the left mouse button. Copy the selected text to the
clipboard using the right mouse button or by pressing Enter.
b. The Insert Mode checkbox is typically already selected, but make sure it is checked as well.
This option allows you to paste text into the command line by positioning the cursor at the
desired position, then using the right mouse button to paste the contents of the clipboard.
c. Under Command History set the Buffer Size to at least 100. This number determines the
number of commands stored in the console buffer. Previously entered commands can be
recalled by using the up and down cursor keys. Click to select the Discard Old Duplicate
checkbox to automatically discard any duplicate commands from the console buffer.
3. Select the Layout tab and make the following modifications:
a. Under Screen Buffer Size change the Height setting to 9,999. This setting determines the
number of lines of output held in the console buffer you can view using the console
window scroll control.
b. Under Window Size, set the Width setting to a number between 80 and 120. This setting
determines the number of characters displayed across the console window. Though a
higher number setting allows you to type more characters before wrapping to the next
line, the default output format of most Exchange Management Shell cmdlets is based on an
80 - character display. If you change this number, make sure the value for Width under
Screen Buffer matches.
4. Click OK to commit these changes and close Properties. The changes take effect the next time
Exchange Management Shell is started.
c01.indd 30c01.indd 30 12/17/07 3:19:32 PM12/17/07 3:19:32 PM