windows - remove user from local administrators group via cmd line when username has space -


I'm trying to execute a seemingly simple order, though I'm having problems because in the username A place.

The user is: ad \ Local Workstation Admin (under Local Administrator Group)

The command is: Net Locallog Administrator ad \ Local Workstation Admin / Delete

Returns: There is no such global user or group: ad \ Local is not a global user or group: Workstation. There are no global users or groups: Administrators.

I have tried to make a different number of variations using quotes and brackets.

Just protect the user in quotes

  nets philanthrop administrator "ad \ Local Workstation Admin "/ Delete    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -