Solved

New-MoveRequest -WhatIf paramter

Posted on 2013-01-23
5
1,494 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

When you are trying to access the server, have you ever encountered "The terminal server has exceeded the maximum number of allowed connection" error?  or "The user is attempting to log on to a Terminal Server in Remote Administration mode, but the …
I have put this article together as i needed to get all the information that might be available already into one general document that could be referenced once without searching the Internet for the different pieces. I have had a few issues where…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now