![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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) |
| | Question: Can you write to the pipeline w/ out writing to the console? I would like to control the output using write-host, but I do want return server objects with properties? -- Brandon Shell --------------- Stop by my blog some time ![]() http://www.bsonposh.com/ Try the "Search of Powershell Blogs" -------------------------------------- |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Question: Can you write to the pipeline w/ out writing to the cons Does out-null do what you want? Alternatively write to a file and display at the end of your script. Do you have an example of what you are trying to acheive? -- Richard Siddaway Please note that all scripts are supplied "as is" and with no warranty "Brandon Shell" wrote: > I would like to control the output using write-host, but I do want return > server objects with properties? > > -- > Brandon Shell > --------------- > Stop by my blog some time ![]() > http://www.bsonposh.com/ > Try the "Search of Powershell Blogs" > -------------------------------------- > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Question: Can you write to the pipeline w/ out writing to the cons Assign it to a variable. This way you can prevent the output Then you can write-host -- $hay http://scriptolog.blogspot.com "RichS" <RichS@discussions.microsoft.com> wrote in message news:1DE7FF53-8AFD-42F4-ACF0-2B4EEFCF9701@microsoft.com... > Does out-null do what you want? > > Alternatively write to a file and display at the end of your script. Do > you > have an example of what you are trying to acheive? > -- > Richard Siddaway > > Please note that all scripts are supplied "as is" and with no warranty > > > "Brandon Shell" wrote: > >> I would like to control the output using write-host, but I do want return >> server objects with properties? >> >> -- >> Brandon Shell >> --------------- >> Stop by my blog some time ![]() >> http://www.bsonposh.com/ >> Try the "Search of Powershell Blogs" >> -------------------------------------- >> >> |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Question: Can you write to the pipeline w/ out writing to the cons That is what I ended up doing, but I was curious if there were other ways. -- Brandon Shell --------------- Stop by my blog some time ![]() http://www.bsonposh.com/ Try the "Search of Powershell Blogs" -------------------------------------- "$hay" <no@addre.ss> wrote in message news:eJWcqCkRHHA.4404@TK2MSFTNGP03.phx.gbl... > Assign it to a variable. This way you can prevent the output > > Then you can write-host > > > > > > > -- > $hay > http://scriptolog.blogspot.com > > > > "RichS" <RichS@discussions.microsoft.com> wrote in message > news:1DE7FF53-8AFD-42F4-ACF0-2B4EEFCF9701@microsoft.com... >> Does out-null do what you want? >> >> Alternatively write to a file and display at the end of your script. Do >> you >> have an example of what you are trying to acheive? >> -- >> Richard Siddaway >> >> Please note that all scripts are supplied "as is" and with no warranty >> >> >> "Brandon Shell" wrote: >> >>> I would like to control the output using write-host, but I do want >>> return >>> server objects with properties? >>> >>> -- >>> Brandon Shell >>> --------------- >>> Stop by my blog some time ![]() >>> http://www.bsonposh.com/ >>> Try the "Search of Powershell Blogs" >>> -------------------------------------- >>> >>> > > |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Question: Can you write to the pipeline w/ out writing to the cons a "trick" I use often : PoSH> &{ >> "blabla" >> write-host "console" >> ls >> } | out-null >> console greetings /\/\o\/\/ "Brandon Shell" <tshell@mask.gmail.com> wrote in message news:%23nesZEkRHHA.1200@TK2MSFTNGP02.phx.gbl... > That is what I ended up doing, but I was curious if there were other ways. > > -- > Brandon Shell > --------------- > Stop by my blog some time ![]() > http://www.bsonposh.com/ > Try the "Search of Powershell Blogs" > -------------------------------------- > "$hay" <no@addre.ss> wrote in message > news:eJWcqCkRHHA.4404@TK2MSFTNGP03.phx.gbl... >> Assign it to a variable. This way you can prevent the output >> >> Then you can write-host >> >> >> >> >> >> >> -- >> $hay >> http://scriptolog.blogspot.com >> >> >> >> "RichS" <RichS@discussions.microsoft.com> wrote in message >> news:1DE7FF53-8AFD-42F4-ACF0-2B4EEFCF9701@microsoft.com... >>> Does out-null do what you want? >>> >>> Alternatively write to a file and display at the end of your script. Do >>> you >>> have an example of what you are trying to acheive? >>> -- >>> Richard Siddaway >>> >>> Please note that all scripts are supplied "as is" and with no warranty >>> >>> >>> "Brandon Shell" wrote: >>> >>>> I would like to control the output using write-host, but I do want >>>> return >>>> server objects with properties? >>>> >>>> -- >>>> Brandon Shell >>>> --------------- >>>> Stop by my blog some time ![]() >>>> http://www.bsonposh.com/ >>>> Try the "Search of Powershell Blogs" >>>> -------------------------------------- >>>> >>>> >> >> > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| generel question about console in Windows Vista - very slow output | PowerShell | |||
| Pipeline question | PowerShell | |||
| Hosting Powershell in app -- Question about Pipeline | PowerShell | |||
| Redirecting StdOutout and Writing StdInput fails to Powershell Console,... | PowerShell | |||
| Question about writing windows apps that write to network drives under vista/uac | Vista security | |||