Newsgroups: microsoft.public.windows.powershell
From: "Keith Hill" <r_keith_h...@mailhot.moc.no_spam_I>
Date: Sat, 1 Sep 2007 11:51:06 -0600
Local: Sat, Sep 1 2007 1:51 pm
Subject: Enh Request: Capturing Warning, Verbose, Debug and Host output
It seems like it would be nice these "other" information/output channels
were assigned to streams so they could participate in stream redirection like stderr (2>&1) e.g.: 0 - stdin So for logging purposes, if I want to capture *ALL* output to a log file I C:\MyLongRunningComplexUnattendedScript.ps1 9>&1 > or if I wanted to capture verbose output in a script: stop-process -n vd* -verbose 4>&1 > C:\Logs\StoppedProcesses.log Thoughts? -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||