Avatar of soffcec
soffcec
Flag for Iceland asked on

Add user to Windows 2012R2 AD with DialIn ip address

I need to add user to Windows 2012R2 AD with:
  Login name and domain
  Full name and address
  Group
  DialIn ip address

I need to do all this from command line
Active DirectoryWindows Server 2012Microsoft DOS

Avatar of undefined
Last Comment
soffcec

8/22/2022 - Mon
Brett Danney

You first have to create the user:
net user username password /ADD /domain /FULLNAME:"User_Fullname"
Then you add the user to the group
net group groupname domainnamel\username /add

The IP address adding I am not sure about.
soffcec

ASKER
Well I need this all or nothing.
compdigit44

You might be able to do this via powershell. I am still doing research on this for you and the attribute that needs to be referenced.. but I think I am getting  close..

https://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_27687701.html
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ASKER CERTIFIED SOLUTION
compdigit44

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
soffcec

ASKER
Cannot make set-qaduser to work , do I need to install it ?

PS C:\> set-qaduser
set-qaduser : The term 'set-qaduser' is not recognized as the name of a cmdlet,
 function, script file, or operable program. Check the spelling of the name, or
 if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ set-qaduser
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (set-qaduser:String) [], Command
   NotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
compdigit44

Use can use import the native powershell snap-in for AD by typing in the following

IMport-module Active Directory

The reason why you cannot load the set-qaduser is best the Quest plug-in for AD in not installed..

http://ss64.com/ps/quest.html
soffcec

ASKER
I can not find out what to use. The link sends me to DELL software page, but I am looking for some free solution. Strange if this can not be done with bult in windows commands.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
compdigit44

it can be done using the built in commands..  The Dell bought Quest and some of their powershell cmdlets are free.

set-aduser , get-aduser etc...
soffcec

ASKER
I resolved this with QADUser