Hi Gents
so i have a small script (not finished yet) to create some room mailboxes (approx 600) i would like to add a progress bar to show how far the script is along in % (for the creation of the MB, then the remaining sleep time). something im struggling with is applying the examples around to my own situation, im sure once i see it in action with my own process everything will click.
###Set Variables### $data = Import-Csv "H:\EMEA Messaging\Meeting Rooms\test Data.csv" $ou = "contoso.com/Move-Objects/SG-Test" $PWD = "MeetingRoom01" ## Only set while exchange is spread across DBs## $DB = "EU_DAG1_db3" ###Create Meeting Rooms### $data | ForEach-Object { New-Mailbox -Name $_.displayname -Alias $_.alias -UserPrincipalName $_.upn -Org $ou -Password (ConvertTo-SecureString $PWD -AsPlainText -Force) -Database $DB -room } ###Hides Rooms from Address Book### Sleep -Seconds 90 -Verbose Get-mailbox -OrganizationalUnit $OU | Set-Mailbox -HiddenFromAddressListsEnabled $TRUE ##Set-Calendarprocessing CDMlets for resourcing options####
TIA