Prev | Current Page 629 | Next

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

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

That value is then set on the variable
$PFDatabase .
Chapter 15: User, Group, and Public Folder Administration
461
The next command in this segment uses Get-PublicFolderDatabase to determine the server
that holds the public folder database stored in the variable $PFDatabase . The server property is
de - referenced at the end of the command to supply the value to $server . This variable is used in
several other places in the script to supply the name of the server.
# Figure out where to create the folder
$PFDatabase = (Get-MailboxDatabase -Identity:$userMB.Database).PublicFolderDatabase
$server = (Get-PublicFolderDatabase -Identity:$PFDatabase).server
Now that all the prerequisite work is done, it ??™ s time to call the other functions. First, the
validatePFStore function is called to see if the public folder store is available. If the test in
the validatePFStore function determines the store is not available, a true value is returned. The
if statement executes and the script exits. If the store is available, the results returned by
validatePFStore are false and the if statement is skipped.
# Check if the public folder database is available
if (validatePFStore) { exit }
Next, the validateFolder function is called to see if the user really needs a public folder. If the user
already has a folder, the result returned by validateFolder is true.


Pages:
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641
doktorat lampy ogrodowe określić zakłady bukmacherskie Wczasy nad morzem