Re: Newbie Q: How to suppress return value printing in PowerShell
- From: "Jeffrey Snover [MSFT]" <jsnover@xxxxxxxxxxxxx>
- Date: Mon, 31 Jul 2006 23:01:54 +0100
This should answer your question:
http://blogs.msdn.com/powershell/archive/2006/07/31/Suppressing_return_values_in_PowerShell_functions.aspx
--
Jeffrey Snover [MSFT]
Windows PowerShell/Aspen Architect
Microsoft Corporation
This posting is provided "AS IS" with no warranties, no confers rights.
Visit the Windows PowerShell Team blog at:
http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at:
http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx
<hwiechers@xxxxxxxxx> wrote in message
news:1154362967.405744.59360@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Is there anyway to suppress printing return values in PowerShell?
What I mean is:
When you call a function Foo that returns a bool, PS will write 'True'
or 'False' to the screen
by default. Is there anyway to get it to stop writing those return
values?
.
- References:
- Newbie Q: How to suppress return value printing in PowerShell
- From: hwiechers
- Newbie Q: How to suppress return value printing in PowerShell
- Prev by Date: Re: Need to query SID on local groups on remote computers.
- Next by Date: Re: remote machine execution
- Previous by thread: Newbie Q: How to suppress return value printing in PowerShell
- Next by thread: Re: Need to query SID on local groups on remote computers.
- Index(es):
Relevant Pages
|