Dup Ver Goto 📝

PowerShell

PT2/aw/os/shell does not exist
To
14 lines, 74 words, 661 chars Page 'PowerShell' does not exist.

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:

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.

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