#This is a string variable.
$Var = "Hello World!"
#This is a literal string variable.
$Var = 'Hello World!'
#You can also cast the variable type using the [string] class
[String]$var = "Hello World!"
Powershell Variables
· One min read
#This is a string variable.
$Var = "Hello World!"
#This is a literal string variable.
$Var = 'Hello World!'
#You can also cast the variable type using the [string] class
[String]$var = "Hello World!"