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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -