Showing results for Return Values - PowerShell Team

Dec 10, 2010
0
0

Same Command. Different Return Types.

PowerShell Team PowerShell Team

My command seems to behave differently depending on how many items were returned. This is something that the PowerShell Team hears from the community or our internal partners every couple of weeks. This blog post will explain when a Windows PowerShell command returns different types and offer some reasons for why it is done this way. In general...

FAQReturn Values
Jul 31, 2006
1
0

Suppressing return values in PowerShell functions

PowerShell Team PowerShell Team

PSMDTAG:FAQ: How do I supress return values in PowerShell functions? This was asked in a newgroup with the clarification: What I mean is:When you call a function Foo that returns a bool, PS will write 'True' or 'False' to the screenby default. Is there anyway to get it to stop writing those return values? Let's illustrate the issue: PS> ...

FAQFunctionsReturn Values

Feedback