Rename group from Windows command line

by admin on December 26, 2011

We can rename a local user group from windows command line usingĀ  wmic group command. Syntax for the rename operation is given below.

wmic group where name='groupname' rename newname

Example:

To rename local group ‘Users1′ as ‘Users2′ we can run the below command.

C:\>wmic group where name='users1' rename users2
Executing (\\WINCMD-PC\ROOT\CIMV2:Win32_Group.Domain="WINCMD-PC",Name="users2")->rename()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
ReturnValue = 0;
};
C:\>

Leave a Comment

Previous post:

Next post: