Datasheet
Chapter 1: Getting Started with Windows PowerShell
11
In Figure 1 - 4 , the Set-Mailbox cmdlet is being used to set the ProhibitSendQuota attribute on
mailbox - enabled user John Doe. The expected data input type for parameter
ProhibitSendQuota
is an integer value or integer value with a standard byte size abbreviation as a suffix. Because an
alphanumeric string value (
somestring ) was entered instead, the command fails to execute and the
error message shown describes the exact cause for the error. The solution is to provide the input value in
the correct format, in this case 2GB to specify a
ProhibitSendQuota value of 2,147,483,648 bytes.
Figure 1-4
Single - word string values can be entered as is, but string values that contain multiple words with spaces
must be encapsulated in single or double quotes. Some parameters take as input multiple values. Each
value must be separated by commas. When entering multiple string values with spaces, encapsulate
each value in quotes, and separate each value with commas.
In Figure 1 - 5 , the
Set-User cmdlet is being used to set the multi - valued attribute OtherHomePhone with
two separate string values that both contain spaces.
Figure 1-5
Some parameters support wildcards as input. Windows PowerShell handles wildcard matching so all
cmdlets that accept wildcard input behave the same way. The most commonly known wildcard you will
find useful is the asterisk or star (*). The asterisk wildcard can be used to stand for zero or more
characters in a string.
c01.indd 11c01.indd 11 12/17/07 3:19:26 PM12/17/07 3:19:26 PM