Solved

New-MoveRequest -WhatIf paramter

Posted on 2013-01-23
5
1,510 Views
Last Modified: 2013-01-23
I would like to know how to find the results of the -WhatIf parameter on the New-MoveRequest.

If I execute the command New-MoveRequest -identity "User" -TargetDatabase "NewDB" the move request eventually fails, because of a corrupt message.  So I know there is an error, but I do I find these errors when I run it with the -WhatIf parameter?
0
Comment
Question by:byt3
  • 3
  • 2
5 Comments
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38811637
The whatif wont help you in the slightest.

You need to examine the logs created by the move command OR specify that you want to ignore all errors.
0
 
LVL 37

Expert Comment

by:Neil Russell
ID: 38811658
The -whatif  parameter of ALL powershell cmdlets just shows you what would be executed, it does NOT execute the actual command.
0
 
LVL 2

Author Comment

by:byt3
ID: 38811673
I know it won't execute the command.  I just want it to pretend to execute the command, so I can find out what the error(s) will be and fix it before executing the actual command.

Basically I want to find out what all the corrupt messages are in a mailbox and fix ahead of time.

Thanks.
0
 
LVL 37

Accepted Solution

by:
Neil Russell earned 250 total points
ID: 38811690
The corrupt messages will ONLY be found when the command executes. -whatif does not execute the command therefore can NOT show you the bad messages.

Best option is to either trawl through the logs after it fails and identify failed messages

OR

Specify something like   -BadItemLimit 100 -AcceptLargeDataLoss  and accept the loss of some individual emails.
0
 
LVL 2

Author Comment

by:byt3
ID: 38812117
That's lame.  That means -WhatIf doesn't really do anything useful if anything at all.

I need to check to make sure it is a message that I can skip (not important some how).  As is, I have to run the command and have it fail, check the message and repeat for who knows how many messages.

Would be nice to get a list of corrupt messages somehow so I can check through all messages at once then continue.

Thanks anyway.
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Here is the example of setting up enterprise library configuration in asp.net. One of the great enhancements that comes with the Enterprise Library is the Enterprise Library Configuration Console. This can be found on your Start menu under Progra…
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question