8
0
2024-01-24 16:42:38 +01:00

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
}