#admin

27 solutions

Enable Remote Desktop from the command line
Windowsadminremote-desktopsettings

Flip fDenyTSConnections to 0 to allow RDP connections to this PC.

Medium risk ✓ 2026-09-18
Add Defender Exclusions with PowerShell (Add-MpPreference)
Windowsdefenderadminpowershell

Skip antivirus scanning for a build folder or a trusted process using the Defender module's Add-MpPreference.

Medium risk ✓ 2026-09-17
Edit the Windows hosts file from the command line
WindowsFilesDNSadmin

Open the hosts file in Notepad as administrator, or append an entry with Add-Content.

Medium risk ✓ 2026-09-18
Check if a Windows terminal is running as administrator
Windowsprivilegesadminpowershell

Test admin elevation in PowerShell with the WindowsPrincipal role check.

Low risk ✓ 2026-09-18
Run Containers With Podman
LinuxregistryProcessesadmin

Use a Docker-compatible CLI that runs containers without a root daemon.

Low risk ✓ 2026-09-22
List Saved Windows Credentials with cmdkey
Windowscredentialsadmincli

cmdkey /list shows everything stored in Windows Credential Manager — the forgotten CLI for stale logins and RDP entries.

Low risk ✓ 2026-09-17
Run a Command Elevated with Start-Process -Verb RunAs
Windowsadminuacpowershell

Trigger the UAC prompt and launch an admin-level process from a non-elevated PowerShell session.

Medium risk ✓ 2026-09-17
Change a Windows account password with net user
Windowsaccountspasswordadmin

Reset a local user's password from an elevated prompt without typing it in plain text.

Medium risk ✓ 2026-09-18
Log Off a Session with logoff.exe
Windowssessionadmincli

The built-in logoff command ends a session by ID — the standard fix for stuck disconnected RDP sessions on servers.

Medium risk ✓ 2026-09-17
Run Commands Remotely With Invoke-Command
Windowsnetworksystemadmin

Execute script blocks on one or many hosts in parallel.

Low risk ✓ 2026-10-13
Repair System Files With sfc /scannow
Windowssystemadminpowershell

Scan protected Windows files and restore corrupted copies.

Low risk ✓ 2026-10-13
Re-Lock a BitLocker Drive with manage-bde -lock
Windowsbitlockeradminencryption

Once unlocked, a BitLocker data drive stays open — manage-bde -lock is the forgotten command that re-secures it without rebooting.

Medium risk ✓ 2026-09-17