You can redirect from within the script itself using out-file or echo (ghetto 
but I use it sometimes).

Gci c:\badexample | sort-object "name" |out-file c:\filename.txt


-troy


-----Original Message-----
From: Joseph L. Casale [mailto:[EMAIL PROTECTED]
Sent: Friday, September 26, 2008 3:29 PM
To: NT System Admin Issues
Subject: Powershell scheduled job

I have a job I schedule as follows:



powershell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange 
Server\Bin\ExShell.psc1" -Command ". 'C:\Scripts\job.ps1'"



How can I redirect the output of this job to a text file?



Thanks!
jlc







~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to