Added a check to create the export folder if not exists
This commit is contained in:
1 parent
264f5a5e5c
commit
38a82b6ce8
1 file changed
+2
@@ -3,6 +3,8 @@ $Mailboxes = Get-Mailbox -ResultSize Unlimited
|
||||
$TotalMailboxes = $Mailboxes.Count
|
||||
$CurrentMailbox = 0
|
||||
|
||||
if (!(test-path $ExportPath)) {mkdir $ExportPath}
|
||||
|
||||
foreach ($Mailbox in $Mailboxes) {
|
||||
$CurrentMailbox++
|
||||
|
||||
|
||||
Reference in new issue
Block a user