How to find and log off RDP sessions in Windows with quser and qwinsta
Use quser, qwinsta and rwinsta to list RDP sessions on a Windows server, spot disconnected ones blocking new logons, and log them off from the command line.
Use quser, qwinsta and rwinsta to list RDP sessions on a Windows server, spot disconnected ones blocking new logons, and log them off from the command line.
setspn reads, adds, and deletes Service Principal Names (SPNs) on Active Directory accounts. An SPN is the identifier Kerberos uses to match a service — a SQL instance, an IIS app pool, a file share — to the account that…
Every Windows administrator knows ipconfig It is usually the first command run when something on the network stops working. But ipconfig does more than display adapter information — it can flush the DNS cache, force a DHCP lease renewal,…
Checking whether a port is open — on the local machine or on a remote server — comes up in almost every troubleshooting scenario involving services, firewalls, or application connectivity. Windows has two built-in tools for this: netstat in CMD…
When something goes wrong on a Windows machine — a service crash, a failed login, an unexpected reboot — the answer is usually in the Event Log. wevtutil lets you query, filter, export, and clear Event Logs entirely from the…
When a Group Policy setting is not applying as expected — a drive mapping is missing, a software restriction is not enforced, a desktop lockdown is not working — the question is always the same: which GPOs actually applied to…
NTFS permissions control who can read, write, and execute files and folders on Windows. icacls is the command-line tool for viewing and modifying those permissions — without opening File Explorer, without clicking through security dialogs, and without needing a GUI…
When a port is unreachable, a service is not responding, or something is holding a connection open, netstat is the first command to run. It shows exactly what is listening on which port, which connections are established, which processes own…