Enkelt script för att exportera ut PST från en lista på mailboxar, filen behöver ha mailbox som kolumnamn. Ändra Server till rätt värde innan.
Import-Csv .\Rest_Archive.txt | foreach { $MBX = get-mailbox -identity $_.mailbox #---Testing---- # Write-Host $MBX.alias # Write-Host "\\pdtexchange\pst\$($MBX.alias).pst" # New-MailboxExportRequest -Mailbox $_.mailbox -FilePath "\\server\pst\$($MBX.alias).pst" -WhatIf #---End testing--- New-MailboxExportRequest -Mailbox $_.mailbox -FilePath "\\server\pst\$($MBX.alias).pst" }