Have you taken a look at Write-Verbose ??? From: Joseph L. Casale [mailto:[email protected]] Sent: Wednesday, April 11, 2012 2:26 PM To: NT System Admin Issues Subject: Powershell verbose pref
I have a script where I simply piped a hash into a ft -auto to print it. Now I am trying to only do this when the verbose flag is set and have all the lines prefixed with VERBOSE:. Is there a simple way to do this, or must I test for verbose, then iterate through the hash? Thanks! jlc ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected]<mailto:[email protected]> with the body: unsubscribe ntsysadmin ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ --- To manage subscriptions click here: http://lyris.sunbelt-software.com/read/my_forums/ or send an email to [email protected] with the body: unsubscribe ntsysadmin
