• so,,when using the Get-moverequeststatistics -identity if the persons name has an apostrophe in it, it doesn't like it,,what do you use'Rourke ???

    Steven J Einhorn

    Friday, November 10, 2017 2:55 PM


All replies

  • Hi,

    Wilcard should help

    Get-moverequeststatistics  -identity  "*".

    Let us know the results


    Friday, November 10, 2017 4:09 PM
  • didnt work...users name is Mike O'Rourke. doesnt it have to spelled correctly in order for the move request command to know the user ???

    get-moverequeststatistics -identity mo' does not work

    Steven J Einhorn

    Friday, November 10, 2017 4:17 PM
  • Could you paste the error here


    Friday, November 10, 2017 4:25 PM
  • it just sits and does nothing
             Welcome to the Exchange Management Shell!

    Full list of cmdlets: Get-Command
    Only Exchange cmdlets: Get-ExCommand
    Cmdlets that match a specific string: Help *<string>*
    Get general help: Help
    Get help for a cmdlet: Help <cmdlet name> or <cmdlet name> -?
    Exchange team blog: Get-ExBlog
    Show full output for a command: <command> | Format-List

    Show quick reference guide: QuickRef
    Tip of the day #30:

    Tab completion reduces the number of keystrokes required to complete a cmdlet. Just press the TAB key to complete the cmdlet you're typing. Tab completion kicks in whenever there is a hyphen (-) in the input. For example:


    should complete to Get-SendConnector. You can even use wildcards, such as:


    Pressing the TAB key when you enter this command cycles through all cmdlets that match the expression, such as the Unified Messaging Mailbox policy cmdlets.

    VERBOSE: Connecting to Email2.RILOT.
    VERBOSE: Connected to Email2.RILOT.
    [PS] C:\Windows\system32>get-moverequeststatistics -identity mo'

    Steven J Einhorn

    Friday, November 10, 2017 4:28 PM
  • the move is done already done, but i was wondering why i could not get the normal stats. will probably never have to do this again !! lol so dont kill yourself over it !!!


    Steven J Einhorn

    Friday, November 10, 2017 4:31 PM
  • im gone for the weekend,,,thx anyway !

    Steven J Einhorn

    Friday, November 10, 2017 4:40 PM
  • I would escape the single quote by doubling it. That is replace ' with ''.

    You can also escape in the PowerShell cmdlet with the PowerShell escape character, ` (tilda).

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    Friday, November 10, 2017 4:42 PM
  • could you be more specific ?? show me the cmd in its entirety ??


    Steven J Einhorn

    Friday, November 10, 2017 4:44 PM
  • Try:

    Get-moverequeststatistics  -identity  "O''".


    Get-moverequeststatistics  -identity  "O`'".

    I used to use a replace function to replace ' with '' whenever I dealt with names that might have the apostrophe character. I know '' works, I would need to test `'.

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    Friday, November 10, 2017 4:52 PM
  • shell treats appostrophe as a character and so it waits for you to use another to finish the sequence.

    the command doesn't run so it wait's for input.

    try to put the user name within double quotes "         " it should ignore any other special characters in between

    Thanks & Regards Ramandeep Singh

    Saturday, November 11, 2017 7:55 AM
  • Hi Steven,

    For current situation, we need run the Get-MoveRequest with double quotes ("xxxx"), for example:
    Get-MoveRequest "Mike O'Rourke"

    Figure as below:

    Allen Wang

    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact

    Monday, November 13, 2017 10:10 AM