schedule a power shell script in exchange 2010
schedule a power shell script in exchange 2010
(OP)
Hi,
How to schedule a power shell script in exchange 2010?
Please help.
Thank you,
SC Moh
How to schedule a power shell script in exchange 2010?
Please help.
Thank you,
SC Moh
RE: schedule a power shell script in exchange 2010
RE: schedule a power shell script in exchange 2010
Yes, the script is to send email to remind users to change their password.
i tested to run the script in the exchage (CAS) server without any issue.
the script cannot able to run it with task scheduler.
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command ". 'c:\program files\microsoft\exchange server\v14\bin\remoteexchange.ps1'; connect-exchangeserver -auto; c:\scripts\PasswordReminder.ps1"
Please advise.
Thank you
SC Moh
RE: schedule a power shell script in exchange 2010
@echo off
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command ". 'c:\program files\microsoft\exchange server\v14\bin\remoteexchange.ps1'; connect-exchangeserver -auto; c:\scripts\PasswordReminder.ps1"
RE: schedule a power shell script in exchange 2010