You need a fix now, not a command manual
When a PC is down and someone is waiting, you don’t have time to wander through Settings or search forums for the “perfect” command. You need a small, repeatable way to get signal fast: is the problem a missing file, a broken connection, or Windows itself drifting into corruption?
The catch is that the Terminal can solve things quickly and also make a mess quickly. One wrong delete, one copy into the wrong place, or one repair run at the wrong time can turn a minor outage into a longer recovery. The goal here isn’t to learn commands—it’s to run a few safe checks in the right order, keep changes reversible, and know when to stop and escalate.
Before you type: how to stay safe and reversible

You open Terminal because Explorer is freezing or a shared folder won’t open, and you’re tempted to start “trying things.” Slow down for thirty seconds. Start by confirming where you are and what you’re about to touch: run whoami, cd, and dir. If the path looks even slightly off (like C:\Windows when you meant a user folder), stop and navigate deliberately.
Keep every change reversible. Prefer copy over move until you’ve verified the result, and use a timestamped backup folder (for example, C:\Temp\backup-2026-05-12) before you overwrite anything. Avoid del and rd /s under pressure; quarantine by moving to a temp folder instead. The real downside: these “safe steps” cost a minute, but they prevent the kind of permission break or accidental wipe that turns a quick fix into a ticket.
Once you can prove your current location, identity, and rollback path, you’re ready to figure out whether the thing you need is missing, renamed, or just hiding somewhere else.
Can you find it fast, or is it truly gone?
You’re told “the file is gone,” but what you usually have is a bad path, a renamed folder, or you’re looking at the wrong drive letter. Start by proving the folder exists and you’re in the right place: dir in the expected parent folder, then dir /a to include hidden and system items. If it’s on a shared drive, confirm the mapping with net use—a disconnected share can look like an empty folder.
If you only know part of the name, search without guessing. In Command Prompt, dir /s /b *invoice*.* searches down from your current folder. If you need a full-disk search, use where /r C:\ *invoice*.*. Expect this to take time on big drives, and it will crawl across offline network paths if you start from a mapped share.
Once you’ve found the real location, you can choose whether to copy it out safely or move it back into place.
Copy or move without wrecking folders or permissions
You copy a folder back into place, everything looks fine, and then the app still can’t read it because the permissions changed. That usually happens when you drag-and-drop between drives or from a share, or when you copy “just the files” and miss hidden items. In Terminal, be explicit: use robocopy so the structure and timestamps come across predictably.
For a safe first pass, copy to a new destination and verify before you replace anything: robocopy "D:\Found" "C:\Users\Alex\Documents\Recovered" /E /COPY:DAT /DCOPY:DAT /R:1 /W:1. /E keeps subfolders (including empty ones). /COPY:DAT avoids forcing owner/ACL changes that can break access in small offices. If you truly need matching permissions, use /COPYALL—but test on one folder first, because it can also carry over “wrong” ACLs from a share.
When you’re confident, a move is just a copy plus cleanup: add /MOV (files) or /MOVE (files + folders). Watch the summary: if “Failed” isn’t zero, stop and fix that before you delete anything.
Network failing—what should you test in two minutes?

You try to open a share or load a site and it “feels offline,” but the fix depends on which layer is failing: your IP, your route out, or name lookup. In two minutes, get a quick read without changing anything. Run ipconfig and look for an IPv4 address that matches your network (not 169.254.x.x) and a default gateway. Then run ping in a tight ladder: ping 127.0.0.1, ping <your-gateway-ip>, ping 1.1.1.1. If the gateway works but 1.1.1.1 fails, you likely have an upstream/Wi‑Fi issue, not a Windows problem.
If ping 1.1.1.1 works but names don’t, check DNS fast: nslookup microsoft.com. A timeout points to DNS settings or a captive portal. Don’t rush to ipconfig /flushdns or adapter resets on a work PC; that can kill active sessions. If the basic tests look clean, you’re ready to decide whether this is “good enough” or needs escalation.
System acting unstable: pick the lowest-risk repair check
You run into the “everything is weird” day: Explorer hangs, apps crash, Start won’t open, but the PC still boots. Under pressure, it’s tempting to launch deep repairs that can take an hour and force reboots. Start with the lowest-risk check that doesn’t change anything: run sfc /verifyonly. If it reports no integrity violations, you’ve ruled out a common cause without touching the system.
If it does report problems (or you can’t use /verifyonly), step up to sfc /scannow in an elevated Terminal. Expect it to take a while, and don’t run it during a big file copy or while the user has unsaved work—SFC can spike disk use and make the machine feel worse temporarily. When SFC can’t repair files, use DISM in the least disruptive order: DISM /Online /Cleanup-Image /CheckHealth, then /ScanHealth, then /RestoreHealth. The output is what tells you whether you keep going.
Reading results: what counts as ‘fixed’ or ‘escalate’
You run the command, it finishes, and you still have the same question: can you hand the PC back, or are you about to waste another 30 minutes? Treat “fixed” as a repeatable pass, not a good feeling. If the original action works twice (open the share, launch the app, copy the folder), and your quick checks stay clean, stop changing things. For file work, robocopy should show “Failed: 0” and no “Access is denied” lines. For network, ping and nslookup should agree: if IP pings work but names fail, it’s not solved yet.
Escalate when the tool tells you it can’t finish. SFC lines like “could not repair” or DISM errors (and repeated retries) mean you should capture details and stop stacking repairs. Save output to a file (for example, sfc /scannow > C:\Temp\sfc.txt), note the exact error code, and hand that to whoever owns imaging, domain policy, or the ISP.
Build your personal ‘first response’ command shortlist
You’ll work faster if you keep a small “first response” list you trust and run in the same order each time. Put it in a note or a text file on your USB: whoami, cd, dir /a, net use, dir /s /b *name*.* or where /r C:\ *name*.*, then robocopy with /E /COPY:DAT /R:1 /W:1 (add /MOV only after verifying).
For network triage, keep ipconfig, ping 127.0.0.1, ping <gateway>, ping 1.1.1.1, and nslookup. For system stability, keep sfc /verifyonly, sfc /scannow, and DISM in the CheckHealth → ScanHealth → RestoreHealth order. The hard part: these commands still take time to run, so don’t add “just one more” unless the last output clearly points there.