Hello good time
I had a question about creating a user and an organizational unit that I was very busy with and in the end I could not find the answer and I asked you for help. My question is that I have an Excel that contains the following specifications:
id, fname, lname, email, employeeid, postcode, country, mobile, displayname, username, address, department, job
I want to write a script in PowerShell that automatically creates an organizational unit in the Active Directory relative to the desired department with these specifications and automatically adds any person who belongs to that department in that organizational unit. In general, I want to give all the Excel I have in PowerShell and add both the organizational unit and the user based on this Excel, that is, I will move them softly after adding the user in the organizational units, do it automatically Can you help me in this regard? I searched your entire site and abroad, but I did not come to any conclusion Thank you