Link to home
Start Free TrialLog in
Avatar of soffcec
soffcecFlag 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
Avatar of Brett Danney
Brett Danney
Flag of South Africa image

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.
Avatar of soffcec

ASKER

Well I need this all or nothing.
Avatar of compdigit44
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/questions/27687701/powershell-scripting-dial-in-tab.html
ASKER CERTIFIED SOLUTION
Avatar of compdigit44
compdigit44

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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
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
Avatar of 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.
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...
Avatar of soffcec

ASKER

I resolved this with QADUser