![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Redirect all output How can I redirect the default output to a file? Is there an alternative to piping everything with an out-file? something that would affect globally the whole script? Thanks, Dan |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Redirect all output You can use the redirection operator. Some-CommandorScript > OutputFile "Daniel Balla" wrote: Quote: > How can I redirect the default output to a file? > Is there an alternative to piping everything with an out-file? something > that would affect globally the whole script? > > Thanks, > Dan |
My System Specs![]() |
| | #3 (permalink) |
| | RE: Redirect all output Thanks mate. that makes sense "PaulChavez" wrote: Quote: > You can use the redirection operator. > > Some-CommandorScript > OutputFile > > > "Daniel Balla" wrote: > Quote: > > How can I redirect the default output to a file? > > Is there an alternative to piping everything with an out-file? something > > that would affect globally the whole script? > > > > Thanks, > > Dan |
My System Specs![]() |
| | #4 (permalink) |
| | RE: Redirect all output Be careful... anything written to host (i.e. Write-Host or -verbose output) will NOT be redirected to file. Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject DB> Thanks mate. that makes sense DB> DB> "PaulChavez" wrote: DB> Quote: Quote: >> You can use the redirection operator. >> >> Some-CommandorScript > OutputFile >> >> "Daniel Balla" wrote: >> Quote: >>> How can I redirect the default output to a file? >>> Is there an alternative to piping everything with an out-file? >>> something >>> that would affect globally the whole script? >>> Thanks, >>> Dan |
My System Specs![]() |
| | #5 (permalink) |
| | RE: Redirect all output Thanks how about out-default? what is that? "Brandon Shell [MVP]" wrote: Quote: > Be careful... anything written to host (i.e. Write-Host or -verbose output) > will NOT be redirected to file. > > Brandon Shell > --------------- > Blog: http://www.bsonposh.com/ > PSH Scripts Project: www.codeplex.com/psobject > > DB> Thanks mate. that makes sense > DB> > DB> "PaulChavez" wrote: > DB> Quote: Quote: > >> You can use the redirection operator. > >> > >> Some-CommandorScript > OutputFile > >> > >> "Daniel Balla" wrote: > >> > >>> How can I redirect the default output to a file? > >>> Is there an alternative to piping everything with an out-file? > >>> something > >>> that would affect globally the whole script? > >>> Thanks, > >>> Dan > > |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Redirect all output Hi Daniel, You can record your PowerShell session to a file with *-Transcript. Check the help files for this cmdlets: Start-Transcript Stop-Transcript --- Shay Levy Windows PowerShell MVP http://blogs.microsoft.co.il/blogs/ScriptFanatic DB> How can I redirect the default output to a file? DB> Is there an alternative to piping everything with an out-file? DB> something DB> that would affect globally the whole script? DB> Thanks, DB> Dan |
My System Specs![]() |
| | #7 (permalink) |
| | RE: Redirect all output That is there to allow end users to over-ride the defaults. get-help out-default -full Brandon Shell --------------- Blog: http://www.bsonposh.com/ PSH Scripts Project: www.codeplex.com/psobject D> Thanks D> how about out-default? what is that? D> "Brandon Shell [MVP]" wrote: D> Quote: Quote: >> Be careful... anything written to host (i.e. Write-Host or -verbose >> output) will NOT be redirected to file. >> >> Brandon Shell >> --------------- >> Blog: http://www.bsonposh.com/ >> PSH Scripts Project: www.codeplex.com/psobject >> DB> Thanks mate. that makes sense >> DB> >> DB> "PaulChavez" wrote: >> DB> Quote: >>>> You can use the redirection operator. >>>> >>>> Some-CommandorScript > OutputFile >>>> >>>> "Daniel Balla" wrote: >>>> >>>>> How can I redirect the default output to a file? >>>>> Is there an alternative to piping everything with an out-file? >>>>> something >>>>> that would affect globally the whole script? >>>>> Thanks, >>>>> Dan |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Redirect Sound Card Output | Vista hardware & devices | |||
| How can I redirect output from Invoke-Expression ? | PowerShell | |||
| URL Redirect Problem | Vista General | |||
| redirect unicode format output | PowerShell | |||
| how to redirect whatif output to a file? | PowerShell | |||