If you are studying for CompTIA A+, Windows command line questions are not really about memorizing random commands. They test whether you can pick the right tool when a user says the network is broken, the machine will not update, a drive looks suspicious, or Group Policy is being weird again.

Here is the direct answer: for A+ Windows command line scenarios, focus on what each command proves. ipconfig shows addressing. ping tests reachability. nslookup checks name resolution. sfc checks protected system files. chkdsk checks the file system. gpupdate refreshes policy. net use helps with mapped drives. If you know the symptom each command fits, the exam gets a lot less annoying.

Use these practice questions like mini tickets. Read the problem, choose the best first command, then check the explanation. Pair this with our CompTIA A+ study plan, A+ malware removal practice questions, and Windows Event Viewer troubleshooting checklist if you want a practical Core 2 review path.

Quick Windows command cheat sheet for A+

SymptomUseful commandWhat it tells you
No network or weird IP addressipconfig /allIP, gateway, DNS, DHCP, adapter details
Can reach IPs but not namesnslookupWhether DNS resolves the name
Need to test basic reachabilitypingWhether the target responds at the network layer
Need to trace where traffic stopstracertPath between the client and destination
Suspect corrupted Windows filessfc /scannowChecks and repairs protected system files
Suspect disk/file-system issueschkdskChecks the volume for file-system errors
Need policy to apply nowgpupdate /forceRefreshes local/domain Group Policy
Mapped drive issuenet useShows, creates, or removes network drive mappings
Need admin contextRun as administratorRequired for many repair commands

Do not turn this into flashcard theater. The useful skill is matching command to failure type.

Practice question 1: the laptop has a 169.254 address

A user says their Windows laptop connects to Ethernet, but they cannot reach internal apps or the internet. You check the adapter and see an address starting with 169.254.

Which command is the best first move to inspect the full network configuration?

A. sfc /scannow
B. ipconfig /all
C. gpupdate /force
D. chkdsk /f

Answer: B. ipconfig /all.

A 169.254.x.x address usually means Windows assigned itself an APIPA address because it did not receive a DHCP lease. ipconfig /all shows the adapter, DHCP status, assigned IP, gateway, DNS servers, lease information, and MAC address.

In a real ticket, you would check the cable or Wi-Fi association, switch port, VLAN, DHCP scope, and whether other devices on the same network can get an address. Do not jump to system file repair when the symptom is clearly network addressing.

Practice question 2: websites fail by name, but IPs work

A user can ping 8.8.8.8, but browsing to normal websites fails. Internal apps that use hostnames also fail.

Which command best tests name resolution?

A. nslookup example.com
B. format C:
C. taskkill /f /im explorer.exe
D. shutdown /r /t 0

Answer: A. nslookup example.com.

If IP connectivity works but names fail, DNS is the obvious suspect. nslookup checks whether the configured DNS server can resolve a name. The command does not fix DNS by itself, but it tells you whether name resolution is the broken lane.

For support work, compare results using the default DNS server and, if allowed by your environment, a known resolver. Also check VPN DNS settings, DNS suffixes, and whether the issue affects one device or the whole site. Our Network+ common ports practice questions covers why DNS maps to port 53 in exam scenarios.

Practice question 3: Windows acts corrupted after a bad shutdown

A desktop was powered off during an update. Now several Windows components crash, and built-in tools behave strangely. You already confirmed the disk is visible and the machine boots.

Which command is the best first repair attempt for protected Windows system files?

A. sfc /scannow
B. ping localhost
C. ipconfig /release
D. net use Z: \\server\share

Answer: A. sfc /scannow.

System File Checker scans protected Windows system files and attempts to repair corrupted or missing versions. It is a reasonable early step when Windows itself seems damaged.

Two practical notes matter. First, run it from an elevated Command Prompt or terminal. Second, if sfc cannot repair everything, Windows support workflows often move to DISM, restore points, or deeper repair options depending on the environment. A+ usually wants you to recognize the purpose of sfc, not write a ten-page repair novel.

Practice question 4: the shared drive is not mapping

A user says their department drive is missing after sign-in. Other users can access the same share. You want to see current network drive mappings and remove a stale one if needed.

Which command family fits this ticket?

A. net use
B. tracert
C. chkdsk
D. winver

Answer: A. net use.

net use shows existing network connections and mapped drives. It can also create or delete mappings. For example, net use by itself lists connections, while net use Z: /delete removes a stale mapping.

Mapped drive tickets are rarely just one thing. Check the path, user permissions, VPN status, DNS, SMB access, cached credentials, and Group Policy drive mappings. If the whole team is affected, stop staring at one laptop and check the share or policy. Our network share troubleshooting checklist walks through the bigger flow.

Practice question 5: Group Policy settings are not showing up

A domain-joined workstation should receive a new printer policy and a mapped drive policy. The user signed in this morning, but the settings are not appearing yet.

Which command asks Windows to refresh Group Policy immediately?

A. gpupdate /force
B. ipconfig /flushdns
C. sfc /verifyonly
D. robocopy /mir

Answer: A. gpupdate /force.

gpupdate /force refreshes Group Policy. Some policy changes still require logoff, reboot, or background processing, but this is the command you reach for when policy should apply now.

On a real help desk, do not forget scope. Is the user in the right OU or security group? Is the computer in the right OU? Is the policy linked and enabled? Did the user connect to VPN before signing in? The command refreshes policy; it does not fix a bad policy design.

Practice question 6: disk errors after repeated crashes

A Windows PC repeatedly crashes, then complains about file-system problems on boot. You suspect file-system errors on the volume.

Which command is designed for checking a disk volume for file-system problems?

A. chkdsk
B. hostname
C. whoami
D. ping -t gateway

Answer: A. chkdsk.

chkdsk checks a volume for file-system errors. Depending on flags and the volume being checked, it may need exclusive access or a reboot. In business environments, be careful with repair flags on important machines. Document what you ran and follow your organization’s process.

This is a good example of exam wording. If the question says corrupted Windows files, think sfc. If it says file-system or disk volume errors, think chkdsk. Those are different lanes.

Practice question 7: a route dies halfway to the destination

A user can reach the local gateway and some internal services, but a specific cloud app times out. You need to see the network path and where responses stop.

Which command is the best fit?

A. tracert app.example.com
B. gpupdate /force
C. net user
D. cipher /w:C:

Answer: A. tracert app.example.com.

tracert shows the path traffic takes toward a destination, hop by hop. It is not perfect because some networks block or deprioritize the responses it uses, but it is still useful for seeing whether traffic leaves the local network and where it appears to stop.

For A+, remember the rough difference: ping asks “can I reach this target?” and tracert asks “what path am I taking to get there?” In real troubleshooting, you would also check service status pages, firewall rules, VPN routes, and whether multiple users see the same failure.

Practice question 8: the command requires elevation

A junior tech runs sfc /scannow, but Windows says access is denied or the operation requires administrative privileges.

What should they do first?

A. Run Command Prompt or Windows Terminal as administrator
B. Disable the firewall permanently
C. Delete the user profile
D. Reinstall Windows immediately

Answer: A. Run Command Prompt or Windows Terminal as administrator.

Many repair and administrative commands require elevation. The fix is not to panic or start deleting things. Open the terminal with administrative rights, then run the command again if policy allows.

This matters on the job because command output is part of troubleshooting. Read the error before changing the plan. “Access denied” and “file not found” are not the same problem.

Common traps on A+ command questions

  • Choosing the scary repair command too early. If the symptom is DHCP, do not run sfc first.
  • Mixing up sfc and chkdsk. System files vs. file-system/disk volume checks.
  • Forgetting DNS. If IPs work and names do not, test name resolution.
  • Ignoring permissions. Admin commands often require elevation.
  • Treating commands as magic. Commands provide evidence. They do not replace diagnosis.
  • Skipping user scope. One user, one machine, one subnet, or everyone? Scope changes the fix.

How to study Windows commands without hating your life

Build a small lab instead of staring at a list. Use a Windows VM if you can. Break simple things safely: set a wrong DNS server, map a fake drive, inspect IP settings, run read-only checks, and learn what normal output looks like.

A simple practice routine:

  1. Run ipconfig /all and identify IP, gateway, DNS, DHCP, and adapter name.
  2. Ping your gateway, then a public IP, then a domain name.
  3. Use nslookup to compare working and broken DNS results.
  4. Map and remove a test network drive if you have a safe share.
  5. Run commands from a normal terminal, then notice which ones need admin rights.
  6. Write down what each command proves in one sentence.

If you are also learning Linux or cloud support, command line practice compounds fast. Tools like Shell Samurai help build terminal muscle memory, and the habit transfers even when the commands differ. The bigger skill is reading output calmly instead of smashing random fixes until the ticket goes away.

FAQ

Do I need to memorize every Windows command for CompTIA A+?

No. You should know the common support commands and what they are used for. A+ questions usually give you a scenario and ask for the best tool or next step. Memorize purpose first, syntax second.

Is PowerShell on the A+ exam?

You should recognize that PowerShell exists and is used for Windows administration, but beginner A+ scenarios usually focus on practical support concepts: networking checks, system repair tools, file-system checks, and basic administrative commands.

What is the fastest way to get better at command questions?

Turn each command into a ticket symptom. ipconfig belongs with addressing. nslookup belongs with DNS. sfc belongs with Windows system file corruption. chkdsk belongs with file-system issues. The moment you connect command to symptom, the questions get much easier.

Bottom line

CompTIA A+ command line questions reward practical thinking. Do not memorize commands as trivia. Learn what problem each command helps isolate, what output you expect, and what the next support step would be.

If you can explain why you chose ipconfig, nslookup, sfc, chkdsk, gpupdate, or net use for a specific ticket, you are studying the right way.