17 lines
540 B
PowerShell
17 lines
540 B
PowerShell
cls
|
|
Get-Mailbox digitaldata | foreach {
|
|
|
|
#Write-Host (Get-Mailbox digitaldata).PrimarySmtpAddress
|
|
|
|
try {
|
|
|
|
C:\Users\Administrator.APPEL-GMBH\Desktop\Create-Folders.ps1 $_.PrimarySmtpAddress "test" -ParentFolder inbox -EwsUrl https://appel-com01.appel-gmbh.local/EWS/Exchange.asmx -EWSManagedApiPath "C:\Program Files\Microsoft\Exchange\Web Services\2.0\Microsoft.Exchange.WebServices.dll"
|
|
|
|
} #end try
|
|
|
|
catch {
|
|
|
|
Write-Host (Get-Mailbox digitaldata).PrimarySmtpAddress
|
|
|
|
} #end catch
|
|
} |