Author : HASSAN MD TAREQ | Updated : 2021/09/09

Declaring variable

$FooBarBaz = "foo-bar-baz"
$Path = "C:\Windows\System32"

$Today = (Get-Date).DateTime

Details: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_variables

Data type of a variable

Delete variable

Variable scope

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_scopes

Types of variable

Automatic Variable

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_automatic_variables

Environment variable

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables