Quantcast
Channel: Exchange Server 2013 - General Discussion forum
Viewing all articles
Browse latest Browse all 4521

Move archive store PS command for users without archives

$
0
0

Hi there,

Do you think a powershell script that issues a command to move user mailboxes, both active and archive ones, could negatively affect a user who does not have an archive mailbox, that is, would it be safe to run such a script against a pool of users when some of those users have an archive mailbox and others don't?

.

Something like this:

foreach($user in $users) {

New-MoveRequest -identity $user.UserPrincipalName -BatchName newMove -TargetDatabase $MailboxStore  -ArchiveTargetDatabase $ArchiveStore  -AllowLargeItems -BadItemLimit 10

}

Both $MailboxStore and $ArchiveStore are hardcoded to database names.

Thanks

Zoran


Viewing all articles
Browse latest Browse all 4521

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>