[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 337
  • Last Modified:

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
0
soffcec
Asked:
soffcec
  • 4
  • 4
1 Solution
 
SagiEDocCommented:
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.
0
 
soffcecManagerAuthor Commented:
Well I need this all or nothing.
0
 
compdigit44Commented:
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..

http://www.experts-exchange.com/Programming/Languages/Scripting/Powershell/Q_27687701.html
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
compdigit44Commented:
I believe the following link is what you are looking for and will show you how to add the dial-in IP via a script...

http://calumpowell.com/2012/05/02/allow-dial-in-and-assign-static-ip-addresses-in-active-directory-with-powershell/
0
 
soffcecManagerAuthor Commented:
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
0
 
compdigit44Commented:
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
0
 
soffcecManagerAuthor Commented:
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.
0
 
compdigit44Commented:
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...
0
 
soffcecManagerAuthor Commented:
I resolved this with QADUser
0

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now