### Environment variables See https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.1 for more details. Tldr, use colons: ```plaintext echo $Env:variable_name cd $Env:userprofile # change to home dir ``` ### Enable/disable devices Sometimes, on one of my older laptops, the wifi card needs to be restarted. ```plaintext Get-PnpDevice | where-object { $_.FriendlyName -eq "Intel(R) Dual Band Wireless-AC 7265" } | Disable-PnpDevice -Confirm:$false sleep 1 Get-PnpDevice | where-object { $_.FriendlyName -eq "Intel(R) Dual Band Wireless-AC 7265" } | Enable-PnpDevice -Confirm:$false ```