none
Task Scheduler query help Needed RRS feed

  • Question

  • Hi All,

    I am an early Exchange Server admin and would like to start using Task Scheduler to call Powershell Scripts which are located in my C:\ drive. 

    I would like help to run the following Powershell Script named "Script A" located in "C:\Scripts\Script A Folder\Script A.PS1

    I will also need the parameter -Reportonly appended to the end of the shell script. I am currently using the following:

    Program / Script

    C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

    Add Arguments

    -version 2.0 -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto; - File "C:\Scripts\TScript A Folder\Script A.ps1"

    To add to this, we usually run Exchange Powershell as another user and not as Admin. I am not sure if the script needs to reflect this. 

    I cannot get it to work for love nor money. Any help will be greatly appreciated 


    Adam Willsher


    • Edited by EssexBoy2014 Thursday, May 28, 2015 7:51 AM
    • Moved by Bill_Stewart Wednesday, July 22, 2015 3:11 PM Off-topic
    Thursday, May 28, 2015 7:48 AM

All replies

  • You will have to post task scheduler issues in the platform forum.  This is not a scripting issue.


    \_(ツ)_/


    • Edited by jrv Thursday, May 28, 2015 8:54 AM
    Thursday, May 28, 2015 8:52 AM