Prev | Current Page 581 | Next

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

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

Please check
the file path and try again.`n???
return $notValidPath
}
return $notValidPath
}
# Validate the path to the input CSV file, if it fails validation, exit
if (validatePath) { exit }
# Read input from the CSV file, if there is a failure reading the file, exit
$Users = (Import-Csv $CSVUPath)
if (!$users)
{
Write-Host -fore yellow ???`nFailed to read the input file. It is either invalid
or improperly formatted.`n???
exit
}
# Prompt for the master password to set on the new mailbox enabled accounts
Write-Host -Fore green ???`nPlease enter a temporary secure password for the new user
accounts`n???
(continued)
Part IV: Automating Administration
434
$password = (Read-Host -AsSecureString ???Enter Password???)
# Initialize log file
$datetime = Get-Date
$logHeader = ???
*******************************************************************
Run time = $dateTime using input file $CSVUPath
*******************************************************************???
$logFile = ???$home\My Documents\bulk-newmailbox.log???
Out-File $logFile -InputObject $logHeader -Append
# Set variables used to write to the log file
$err = $null
$blankLine = ???----------------------------------------------------------???
$total = 0
$errorTotal = 0
# Create the mailbox enabled accounts
foreach ($user in $users)
{
New-Mailbox -Name:$user.


Pages:
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593
Patrycja Markowska Londonbeat Lisa Loeb free mp3 fajna muza