Currently am struggling with Exchange 2007 powershell schedule task
i have a powershell script which will create HTML fiile to find the current Active Node in CCR
The Script is working fine and creating the HTML file without any issue.
so, i am thinking of to put the script in schedule task to run the PS1 script for each 1 Hour. the HTML file report which is having the current time and date in that
created a bat file
PowerShell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\Bin\ExShell.psc1" -Command ". 'D:\ramki\clusteractivemon.ps1'"
Whenever the task runs, it is not creating the HTML file , but when i run the bat manaully by duble clicking, the HTML files created with correct time and date.
Say for example. Scripts scheduled by 9.00 AM to start by 10AM
Task ran at 10.00AM but no HTML created at 10.00 AM
but when i manually double click the BAT file by 10.10 or any time, HTML file is created without any issue
i had created in Task Schedular in Windows 2008 server ---> created a basic task
I wonder , why my scripit is not working in Schedule task.
Could any one please help me
Appreciate your fast response
ramakrishnan
There is an amazing pack of free network admin tools. click here to download it




