Net User wrong syntax

ghz 8months ago ⋅ 183 views

I want the /domain information of a specific user.

.../Desktop>net user 12ab= /domain
Die Syntax dieses Befehls lautet:

NET USER
[Benutzername [Kennwort | *] [Optionen]] [/DOMAIN]
     Benutzername {Kennwort | *} /ADD [Optionen] [/DOMAIN]
     Benutzername [/DELETE] [/DOMAIN]
     Benutzername [/TIMES:{Zeiten | ALL}]
     Benutzername [/ACTIVE: {YES | NO}]

I think the problem is with the equals at the end of the username "12ab=", because this excakt syntax works with another username. I didn't find any help on how to solve this problem. Any help is appreciated.

Answers

The issue you're encountering with the net user command is likely due to the special characters in the username "12ab=". When using special characters in command-line interfaces, you may need to escape them or use quotation marks to ensure they are interpreted correctly.

Here are a couple of approaches you can try:

  1. Escape the Equal Sign: Try escaping the equal sign using a caret (^), which is the escape character in Windows command prompt:
net user 12ab^= /domain
  1. Use Quotation Marks: Enclose the username in quotation marks to treat it as a single argument:
net user "12ab=" /domain

Try these approaches and see if they resolve the issue with executing the net user command for the specific username "12ab=". If neither of these solutions works, please provide more details about the error message or behavior you're experiencing, and I'll do my best to assist you further.