I have a script running every month that runs through all of my Users OU's and creates a text file back up of all the users within each OU. The properties exported for each user are:
name, DisplayName, SamAccountName, EmailAddress, Title, Description, Department, Division, Manager, ScriptPath, TelephoneNumber, mobilephone, employeetype, StreetAddress, city, Country, co, company, memberof
Just a quick background, there have been a few instances where the wrong user was deleted and the new account needed to be recreated on the fly. At least with this, there will be some record of each account that I can quickly use to recreate a user that was accidently deleted. My question is this, how can I use the data from the out-file and create a new-aduser with the information correlating to each property?
New-ADUser,Set-ADUserandAdd-ADGroupMember- Frode F.