Skip to main content
OpenpassAI

Free tool · No sign-up needed

Windows User Accounts Lab: net user and net localgroup

Manage local accounts from the Command Prompt: create a user, give it Remote Desktop access without admin rights, and clean up risky accounts.

Last updated

Windows command line · Beginner · About 10 minutes

The scenario

The reception PC is shared, and its accounts have drifted. Jordan Smith starts today and needs to sign in over Remote Desktop, as a standard user. An old account called tempadmin is still an administrator, and the Guest account has been switched on.

Fix all three from an administrator Command Prompt, following least privilege: nobody gets more access than the job needs.

A practice Windows Command Prompt that runs in your browser. It understands real commands, and nothing you type can break anything.

Your tasks

0 of 5 done
  1. List the local accounts on this PC. (not done yet)

  2. Create a local account named jsmith. (not done yet)

  3. Let jsmith sign in over Remote Desktop, without making the account an administrator. (not done yet)

  4. Take tempadmin out of the Administrators group and disable the account. (not done yet)

  5. Disable the Guest account. (not done yet)

Administrator: Command PromptPractice terminal · simulated
Practice Command Prompt: real commands on a simulated Windows PC. Type help to see what it knows.
 

Take it further in OpenpassAI

More labs for the certification you’re studying

OpenpassAI’s Hands-on Labs put you in a Linux or Windows terminal for the certification you’re studying, in guided, hint-only and timed modes.

About this lab

What you’ll practice, and where it’s tested

What you’ll practice

  • Listing accounts with net user
  • Creating a local account
  • Adding and removing group members with net localgroup
  • Disabling an account

Exams it helps with

Free performance-based questions: A+ Core 2, Security+

Walkthrough

One way to complete the lab, with the reason for each step. Try it yourself first.

Show the worked solution
  1. 1See which accounts exist.net user
  2. 2Create the new account.net user jsmith Str0ng-Pass! /add
  3. 3Give it Remote Desktop access only.net localgroup "Remote Desktop Users" jsmith /add
  4. 4Remove the old account’s admin rights.net localgroup Administrators tempadmin /delete
  5. 5Disable the old account.net user tempadmin /active:no
  6. 6Disable Guest.net user Guest /active:no

Guide

How to get the most from a lab

Read the scenario first

Each lab starts with a situation, the way a ticket or an exam question does. Work out what is being asked before you type anything.

Type the commands yourself

Typing a command, getting it wrong and fixing it is what makes it stick. Use the hints when you’re stuck, not before.

Check the walkthrough afterwards

Every lab has a worked solution with the reason for each step. Read it even when you finished: there is often a shorter way.

Do it again from memory

Reset the lab a day later and do it without hints. If you can, you know it. If you can’t, you’ve found what to study.

FAQs

Got Questions? We’ve Got Answers.

Find quick answers or contact our support team.

Is this a real Windows PC?

No. It’s a practice Command Prompt that runs in your browser. It understands the real commands the lab needs and answers the way Windows would. It isn’t a full operating system: nothing is installed, and nothing you type can break anything.

Which commands does the practice Command Prompt understand?

The ones on the A+ objectives and a technician’s daily list: ipconfig, ping, tracert, nslookup, netstat, net user, net localgroup, tasklist, taskkill, sfc, DISM, chkdsk, gpupdate, dir, cd, md, copy, move and del. Type help for the full list. PowerShell cmdlets aren’t included.

Which exams does this lab help with?

It practices skills from CompTIA A+ Core 2 (Security), CompTIA A+ Core 2 (Operating Systems) and CompTIA Security+ (Security Operations).

Do I need an account?

No. The labs run in your browser and nothing is saved. Sign up only if you want OpenpassAI’s full labs and progress tracking.

Ready to Get Certified Faster?

Start free today or see it in action first.

OpenpassAI

Hi 👋 I’m OpenpassAI. Ready to prepare for your exam the smarter way?

Ready to explore OpenpassAI? I can show you how the platform helps you prepare, practice, and pass.