Prev | Current Page 611 | Next

Joezer Cookey-Gam, Brendan Keane, Jeffrey Rosen, and Jonathan Runyon

"Professional Windows PowerShell for Exchange Server 2007 Service Pack 1"

v3.ps1 this section explores, the following
ranges of initials are being used: ??? A ??? through ??? F ??? , ??? G ??? through ??? K ??? , ??? L ??? through ??? P ??? , ??? Q ??? through ??? T ??? ,
and ??? U ??? through ??? Z ??? .
Examining the bulk - newmailbox.v3.ps1 Script
The code that enables this functionality is spread across what is an updated version of the
bulk-newmailbox.v2.ps1 script, so the following paragraphs describe the code changes where
they appear followed by the code they describe. Note that much of the code is simply a modification
of the original code, whereas some of the code is completely new.
The first line of code adds a second parameter input value $CSVDBPath that is used to store the values
from a CSV file containing a list of databases where the new mailboxes are to be created. This makes
the script more dynamic in that the database names are not hardcoded and can be changed each time the
script is run.
param([string]$CSVUPath, [string]$CSVDBPath)
The next segment of code is a reworked version of the ValidatePath function. Because two CSV files
are being read as input, the function is updated to validate both files. To accomplish this, an -or
comparison operator is used in each if statement conditional test to check both input parameters. When
using an -or operator in a conditional test, if either test result is true, the entire conditional test is true.


Pages:
599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623
części do przyczep częstochowa hosting Kątowniki tekturowe loans with no credit check portfele skórzane