Prev | Current Page 576 | Next

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

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

This is also a best practice for keeping track of your scripts by always
storing them in the same location on the server.
Execution starts by entering the name of the script file followed by the path name of the CSV file. The
administrator is prompted to enter a password, after which the main script execution takes place. Each
time the New-Mailbox command embedded in the foreach loop is executed the results are displayed
on the console screen using the default output of the New-Mailbox cmdlet, as shown in the following
example output. This continues until all the objects in the $users variable have been processed.
Chapter 15: User, Group, and Public Folder Administration
431
[PS] C:\ > simplebulk-newmailbox.ps1 c:\users.csv
Enter Password: *********
Name Alias ServerName ProhibitSendQuo
ta
---- ----- ---------- ---------------
User One user1 mb001 unlimited
Organizational unit ???exchangeexchange.local/Legal??? was not found. Please make sure
you have typed it correctly.
At C:\Program Files\Microsoft\Exchange Server\Scripts\simplebulk-newmailbox.ps1
:17 char:9
+ N < < < < ew-Mailbox -Name:$user.name -Database:$user.Database -Organiza
tionalUnit:$user.OrganizationalUnit -UserPrincipalName:$user.UserPrincipalName
-FirstName:$user.FirstName -LastName:$user.LastName -Password:$password -ResetP
asswordOnNextLogon:$true
User Three user3 mb001 unlimited
User Four user4 mb001 unlimited
User Five user5 mb001 unlimited
Database ???MB001\Second Storage Group\Mailbox Database??? was not found.


Pages:
564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588
Dyskusja Nr8 teksty piosenek teksty piosenek poker PokerStars