Net Commands

By Ismail on Sep 2, 2023
net Commands

Introduction

In the world of Windows network administration and security analyst, familiarity with command-line tools is indispensable for managing users, groups, shares, and other network resources efficiently. Among these tools, the ‘net’ command stands out as a versatile and powerful utility for performing various administrative tasks. In this blog post, we’ll explore some of the most useful ‘net’ commands that every Windows network administrator and security analyst should know.

  1. This command provides information about password requirements and account policies on the local system.
 net accounts
  1. Retrieve password and lockout policy information for the domain.
 net accounts /domain
  1. Obtain information about domain groups, including their members.
 net group /domain
  1. List users with domain admin privileges.
 net group "Domain Admins" /domain
  1. Get a list of computers connected to the domain.
 net group "domain computers" /domain
  1. List PC accounts of domain controllers.
 net group "Domain Controllers" /domain
  1. Retrieve users belonging to a specific domain group.
 net group <domain_group_name> /domain
  1. List all domain groups.
 net groups /domain
  1. Display all available local groups on the system.
 net localgroup
  1. List users belonging to the administrators group inside the domain.
 net localgroup administrators /domain
  1. Retrieve information about the local Administrators group.
 net localgroup Administrators
  1. Add a user to the local Administrators group.
 net localgroup administrators [username] /add
  1. Check current shares on the system.
 net share
  1. Get information about a specific user within the domain.
 net user <ACCOUNT_NAME> /domain
  1. List all users of the domain.
 net user /domain
  1. Retrieve information about the current user.
 net user %username%
  1. Mount a share locally with a specified drive letter.
 net use x: \computer\share
  1. Get a list of computers on the network.
 net view
  1. List shares on the specified domain.
 net view /all /domain[:domainname]
  1. Retrieve a list of shares available on a specific computer.
 net view \computer /ALL
  1. List all PCs of the domain.
net view /domain

Conclusion

The ‘net’ command provides a comprehensive set of tools for Windows network administrators to manage users, groups, shares, and other resources effectively. By mastering these commands, administrators & security analysts can streamline administrative tasks, troubleshoot issues, and maintain the security and integrity of their network environments.

Read my other blogs at this page.

Once Again, Feel Free to Contact Me :)
Linkedin icondiscord icon
Built with ♥