Output changes depending upon order of commands and previous commands<pre class=WNPost style="word-wrap:break-word">Try running the following script from a V2 PowerShell, then reverse the order of some of the commands. I am running this on PS V2 on Windows 7 RC. I thought just a weird outputting bug but according to Bob Landau on the PS newgroup, the explanation for the 2 weird output behaviours, though still a bug, is that the default formator is being changed from Format-Table to Format-List. Would be great if Microsoft took this on as a bug if it really is since I did not have good luck with the Connect site trying to report it as such. Thanks, Dave &quot;-------------------------------------&quot; &quot;Start of PS scripting test&quot; &quot;-------------------------------------&quot; # weirdness #1 - the output of the following commands each change depending on the order of each # weirdness #2 - subsequent commands do not have header information and have same format as the first &quot;`nOutput from get-process...&quot; get-process &quot;`nOutput from dir...&quot; dir &quot;`nOutput from get-process...&quot; get-process &quot;`nOutput from dir...&quot; dir &quot;-------------------------------------&quot; &quot;End of PS scripting test&quot; &quot;-------------------------------------&quot; </pre>© 2009 Microsoft Corporation. All rights reserved.Fri, 03 Jul 2009 02:49:09 Zbd418640-f149-4063-af40-aa3f8f6e579ehttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#bd418640-f149-4063-af40-aa3f8f6e579ehttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#bd418640-f149-4063-af40-aa3f8f6e579eCodeSlingerhttp://social.technet.microsoft.com/Profile/en-US/?user=CodeSlingerOutput changes depending upon order of commands and previous commands<pre class=WNPost style="word-wrap:break-word">Try running the following script from a V2 PowerShell, then reverse the order of some of the commands. I am running this on PS V2 on Windows 7 RC. I thought just a weird outputting bug but according to Bob Landau on the PS newgroup, the explanation for the 2 weird output behaviours, though still a bug, is that the default formator is being changed from Format-Table to Format-List. Would be great if Microsoft took this on as a bug if it really is since I did not have good luck with the Connect site trying to report it as such. Thanks, Dave &quot;-------------------------------------&quot; &quot;Start of PS scripting test&quot; &quot;-------------------------------------&quot; # weirdness #1 - the output of the following commands each change depending on the order of each # weirdness #2 - subsequent commands do not have header information and have same format as the first &quot;`nOutput from get-process...&quot; get-process &quot;`nOutput from dir...&quot; dir &quot;`nOutput from get-process...&quot; get-process &quot;`nOutput from dir...&quot; dir &quot;-------------------------------------&quot; &quot;End of PS scripting test&quot; &quot;-------------------------------------&quot; </pre>Tue, 30 Jun 2009 16:08:56 Z2009-06-30T16:08:56Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#6549a1f2-e66f-48f5-b22a-0d8573cce431http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#6549a1f2-e66f-48f5-b22a-0d8573cce431Marco Shawhttp://social.technet.microsoft.com/Profile/en-US/?user=Marco%20ShawOutput changes depending upon order of commands and previous commandsI'll try to fire up a 64-bit VM by end of week.<br/> <br/> Sounds familiar tough...<br/>Tue, 30 Jun 2009 18:05:10 Z2009-06-30T18:05:10Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#e82f257b-4217-4bef-8d5a-0264d9f817c9http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#e82f257b-4217-4bef-8d5a-0264d9f817c9Mervyn Zhanghttp://social.technet.microsoft.com/Profile/en-US/?user=Mervyn%20ZhangOutput changes depending upon order of commands and previous commandsHi,<br/> <br/> It seems default output format was changed between Format-List and Format-Table. <br/> <br/> As a workaround, try to use out-host to fix the output.<br/> <br/> get-process |  out-host<br/> dir |  out-host<br/> <br/> get-process |  out-host<br/> dir |  out-host<br/> <br/> Thanks <br/><hr class="sig">This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.Thu, 02 Jul 2009 06:25:06 Z2009-07-02T06:25:06Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#94668146-4493-4502-b923-8d6e791f3aedhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#94668146-4493-4502-b923-8d6e791f3aedCodeSlingerhttp://social.technet.microsoft.com/Profile/en-US/?user=CodeSlingerOutput changes depending upon order of commands and previous commandsThanks Mervyn. I was just trying to report as a bug if that is what it is. Can you do that? Thanks, DaveThu, 02 Jul 2009 15:18:52 Z2009-07-02T15:18:52Zhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#a3b11016-2dc0-4876-bc82-f24157af0d3dhttp://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/bd418640-f149-4063-af40-aa3f8f6e579e#a3b11016-2dc0-4876-bc82-f24157af0d3dMervyn Zhanghttp://social.technet.microsoft.com/Profile/en-US/?user=Mervyn%20ZhangOutput changes depending upon order of commands and previous commandsHi Dave,<br/> <br/> Thank you for your effort. There is already a bug in our internal database. Hope PowerShell Team solves it soon. <br/> <br/> Thanks. <br/><hr class="sig">This posting is provided &quot;AS IS&quot; with no warranties, and confers no rights.Fri, 03 Jul 2009 02:49:09 Z2009-07-03T02:49:09Z