PowerShell Notes and Links

Posted on
Tags: ,

Number Formatting in PowerShell

$a = 348 

"{0:N2}" -f $a  # 348.00
"{0:D8}" -f $a  # 00000348  (Decimal)
"{0:C2}" -f $a  # $348.00  (Currency)
"{0:P0}" -f $a  # 34,800 %  (Percentage)
"{0:X0}" -f $a  # 15C  (Hexadecimal)

Video Tutorials

Passwords in PowerShell