Add Descriptions to Variables

Keeping track of a variable’s purpose can be accomplished by assigning a clear text description:

$ip = '10.10.10.10'

Set-Variable ip -description 'Server IP or Name'

When you now list your variables, you can output the variable description as well:

dir variable:ip | Format-Table Name, Value, Description

Posted Nov 05 2008, 08:00 AM by ps1
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.