Skip to content

Powershell Commands

Shutdown & Restarts

Restart into Bios

shutdown /r /fw /t 0

Restart into Safe Mode

shutdown /r /o /t 0

Restart into Normal Mode

shutdown /r /t 0

Shutdown

shutdown /s /t 0

Wireless

Wifi Passwords

(netsh wlan show profiles) | Select-String "\:(.+)$" | %{$name=$_.Matches.Groups[1].Value.Trim(); $_} | %{(netsh wlan show profile name="$name" key=clear)} | Select-String "Key Content\W+\:(.+)$" | %{$pass=$_.Matches.Groups[1].Value.Trim(); $_} | %{[PSCustomObject]@{ PROFILE_NAME=$name;PASSWORD=$pass }} | Format-Table Wrap

Wifi Profiles

netsh wlan show profiles

Wifi Scan

netsh wlan show networks mode=bssid