Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » New-Variable

New-Variable - Powershell 1.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

New-Variable

Description
Create a new variable

Usage


Options


Example(s)
Create a new variable:

PS C:\>new-variable week_day
set-variable week_day monday
"$week_day"

Create a new variable and assign a value:

PS C:\>new-variable zipcode -value 90210
"$zipcode"
# Now change the value
$zipcode=54398
"$zipcode"