Help - Script Powershell Task Scheduler

Welcome Forums Web Site Feedback & Assistance Help - Script Powershell Task Scheduler

This topic contains 3 replies, has 3 voices, and was last updated by

 
Participant
4 months ago.

  • Author
    Posts
  • #102866

    Participant
    Points: 0
    Rank: Member

    Good afternoon everyone!

    I am having a swap command and it lists me as this batch migrations.
    But would you like to have this command run every 5 minutes to automate this?

    Thank you.

  • #102868

    Keymaster
    Points: 7
    Rank: Member

    If your question is, "how can I have this run every 5 minutes," then the answer is Task Scheduler.

  • #102869

    Participant
    Points: 0
    Rank: Member

    The command below would be this, today I'm running it via PowerShell.ISE manually.

    Get-MoveRequest -MoveStatus InProgress |Get-MoveRequestStatistics |select DisplayName,StatusDetail,TotalMailboxSize,PercentComplete | FT

  • #102877

    Participant
    Points: 28
    PublishedHelping Hand
    Rank: Member

    Save this line as a script file and as DonJ states. Create a Scheduled Task to run every 5 minutes. (recommended)

    Or create a permanent WMI event that fire this script at 5 min intervals (scheduled task is really a better option and less work)

    Or run this script as a background job, using a forever loop using a 5 min delay (not really recommended)

The topic ‘Help - Script Powershell Task Scheduler’ is closed to new replies.