Which command deletes a user from a local group in Windows?

Study for the SANS560 GIAC Penetration Tester (GPEN) Test. Study with flashcards and multiple choice questions, each question has hints and explanations. Get ready for your exam!

Multiple Choice

Which command deletes a user from a local group in Windows?

Explanation:
Managing local group membership from the command line is what this item tests. To remove a user from a local group, you use the net localgroup command with the target group, the user to remove, and the /del switch. The general form is: net localgroup <groupname> <username> /del. Replacing with the actual names removes that user from that group without affecting the user account itself. The other commands either delete a user account entirely, add a user to a group, or aren’t valid. Therefore, the correct command to delete a user from a local group is net localgroup [group] [logon_name] /del.

Managing local group membership from the command line is what this item tests. To remove a user from a local group, you use the net localgroup command with the target group, the user to remove, and the /del switch. The general form is: net localgroup /del. Replacing with the actual names removes that user from that group without affecting the user account itself. The other commands either delete a user account entirely, add a user to a group, or aren’t valid. Therefore, the correct command to delete a user from a local group is net localgroup [group] [logon_name] /del.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy