To write output in PowerShell that is only displayed when the -Verbose switch is given, use the following attribute in your script:
[CmdletBinding]
Then use write-verbose.
This makes the function an Advanced Function.
Monday, May 3, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment