is there a syntax that would allow us to create users without going through gui?
We have lots of users on different mail servers which we would like to migrate on NethServer platform so we could use Active Directory. Creating and entering user one by one is a tiresome and time consuming job, so I was wondering is there a much quicker solution to create multiple users at once.
As we have right now, to create one user we have to create local user (often creating a group and dedicate user to some groups), create email address for this user, and then create pop3 connector for the same user. Process is quite slow as you can see, and we are looking for a solution but so far havenât found anything that could help us.
Thank you in advance, and best wishes for the holidays.
Kind regards,
Jurica
Unfortunately, Iâve hit a roadblock when trying to use PowerShell with NethServer DC; I am not saying thatâs impossible, on the contrary, just read on.
I was able to install RSAT tools and manage the NethServer DC from a Windows 10 joined to the domain machine:
Adding OUs, users and groups, and managing them works wonderfully:
Managing the DNS server (and the AD DNS zone) also works great:
The problem that Iâve hit when trying to use PowerShell to create users, groups or , generally speaking, to create and edit Active Directory objects on the Nethserver Domain Controller is that itâs impossible to load/import the ActiveDirectory module:
WARNING: Error initializing default drive: âUnable to find a default server with Active
Directory Web Services running.â.
The ActiveDirectory PowerShell module uses the Active Directory Web Services (ADWS) that are running on the target Domain Controller, and we cannot expect to have this feature running on the Nethserver DC.
As a matter of fact, the ADWS were introduced with Windows Server 2008R2. I am positive that I was able to bulk create users in PowerShell before that release - with Server 2008 for example. Actually, I am working on and testing a solution, and if it works fine, Iâll post a short video about it as well.
Here is an update. At first, I jumped onto the PowerShell script train. Then, I remembered that years ago there was an enthusiast, who published a very simple and free âAD Bulk Admin Toolâ on sourceforge.
I gave it a try yesterday, and it works like a charm. You just need to fill in the provided excel spreadsheet, and then run the GUI tool; there is a x86 and x64 bit version, so be careful which one you start.
Just out of interest, is there any good equivalent GUI client tool available for Linux that uses either QT, GTK or other similar API (alternatively, is there any ncurses based console tools that can be used)?
well⊠until last year, M$ doesnât even aknowledge linux existence
more over, if you need AD, you need it for windows client⊠if you have only linux server and linux clients, you donât need AD (ask @davidep about it )
if you have at least one windows client, you are supposed to administrate AD from it⊠itâs not so difficult or absurd
@Stefano_Zamboni
I agree that if only using Linux clients then it would be absurd, but if working within a mixed environment, then (if only for the sake of convince) why not have a Linux based admin tool?
I also realize that if using only Linux then it maybe more appropriate to use LDAP and an equivalent LDAP admin tool (either that or only use the NS internal interface / web based GUI).
while Iâd agree with you, such kind of tool is of no interest⊠why should anyone waste time to create a linux AD management tool if M$ give you a native one for free?
As an afterthought, thatâs a damn good approach to migrate from a legacy windows Domain Controller - just connect and extract all groups and user accounts with their attributes from the old DC, and pipe them into the NethServer (if that works of course).