Solved

Script to see the log of the mover requests for the mailbox

Posted on 2013-12-20
4
564 Views
Last Modified: 2013-12-20
Hello,
Could you please help me with the script. I need to get the log for move-requests from PowerGui ....The mailbox moves takes over 24 hours for mailbox that is 2GB.

For example...Get-365MoveRequest | Get-365MoveRequestStatistics | ....etc

Also, the script that I can run that quickly determines what is the issue with mailbox moves that take so long; couple of scripts that test the functionality and check threshold limits, etc
THank you very much.
0
Comment
Question by:claudiamcse
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:imkottees
ID: 39731864
0
 

Author Comment

by:claudiamcse
ID: 39732240
Is there a mistake in the script below??  

I want to send the output to the excel file. Please help.....

Get-MoveRequest | Get-MoveRequestStatistics | select DisplayName,Alias,Status,StatusDetail,TotalMailboxSize,PercentComplete,OverallDuration,BytesTransferred,BytesTransferredPerMinute |ConvertTo-Html -head $a –body “
 
Current Migration Statistics – Updated $b
 
” | Out-File .\movestats.htm

The following worked, but I would like to format it and send it to the file. THank you.

Get-365MoveRequest | Get-365MoveRequestStatistics | select DisplayName,Alias,Status,StatusDetail,TotalMailboxSize,PercentComplete,OverallDuration,BytesTransferred,BytesTransferredPerMinute


I am not sure where to use the following:
$a = “<style>”
 $a = $a + “BODY{font-family:arial;color:white; background-color:#003466;}
 $a = $a + “TABLE{border-width: 1px;border-style: solid;border-color: white;border-collapse: collapse;}”
 $a = $a + “TH{border-width: 1px;padding: 5px;border-style: solid;border-color: white;background-color:#003466}”
 $a = $a + “TD{border-width: 1px;padding: 5px;border-style: solid;border-color: white;background-color:#003466}”
 $a = $a + “”
 $b = get-date
0
 
LVL 13

Accepted Solution

by:
imkottees earned 500 total points
ID: 39732265
here you go...

Get-365MoveRequest | Get-365MoveRequestStatistics | select DisplayName,Alias,Status,StatusDetail,TotalMailboxSize,PercentComplete,OverallDuration,BytesTransferred,BytesTransferredPerMinute | Export-Csv c:\moverequest.csv
0
 

Author Closing Comment

by:claudiamcse
ID: 39732940
Excellent!!
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
Find out what you should include to make the best professional email signature for your organization.
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

777 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