Forgive me if this has been answered in a different thread. I am not sure what I should be searching for. In vbscript, it was possible to hard code and pass the doman admin username and password in a script to create users in active directory. This is very handy when a non-administrator runs the script to create users. In vbscript it looked something like this
Set ou_SES = DirectoryService.OpenDSObject ("LDAP://OU=Elementary,OU=Students,OU=Sidney Central School Network Users,DC=sidney,DC=k12,DC=ny,DC=us","administrator","password",ADS_SECURE_AUTHENTICATION)
In my case, human resources enters all the employee information into the HR system and then exports a text file that is read by my script. How do I do the same thing with Powershell that I did with vbscript? I would like to have hr run the script but they are not admin's and it pukes.
Any suggestions would be greatly appreciated. Thank you