Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

PowerTip: Multiply Value in Variable and Store Results

Summary: Use Windows PowerShell to multiply the value stored in a variable and store the results. (image)  How can I use Windows PowerShell to multiply the value of a variable and store the results in the same variable? (image)  Use the *= operator, for example: PS C:\> $a = 2 PS C:\> $a *= 3 PS C:\> $a 6 (image...