Windows Command Lines for Regular Administration Tasks

..you can use these command lines for automation as well as remote execution without interacting with the other system users.

 

Managing Local User Groups and User Objects:

List all local user groups:

C:>net localgroup

Aliases for \TEST-PC1

——————————————————————————-
*__vmware__
*Administrators
*Backup Operators
*Cryptographic Operators
*Distributed COM Users
*Event Log Readers
*Guests
*HomeUsers
*IIS_IUSRS
*NC_S_ISLCK
*Network Configuration Operators
*Performance Log Users
*Performance Monitor Users
*Power Users
*Remote Desktop Users
*Replicator
*Users
The command completed successfully.

C:>

Adding users to local group:

C:>net localgroup Users temp /ADD
The command completed successfully.

C:>

Remove users from local group:

C:>net localgroup Users temp /DELETE
The command completed successfully.

C:>

 

What more can be done is here…

C:>net localgroup /?
The syntax of this command is:

NET LOCALGROUP
[groupname [/COMMENT:"text"]] [/DOMAIN]
              groupname {/ADD [/COMMENT:"text"] | /DELETE}  [/DOMAIN]
              groupname name […] {/ADD | /DELETE} [/DOMAIN]

C:>

Leave a Reply

Your email address will not be published. Required fields are marked *