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