Task Scheduler query help Needed

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

May 28th, 2015 3:51am

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

Free Windows Admin Tool Kit Click here and download it now
May 28th, 2015 4:55am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics