I'm really struggling to get a script working that will match givenName and sn from a csv against users in AD and then update the description field of the users based on what is in the csv.
Here is what I have so far,
Import-Csv c:\test.csv | Set-QADUser -SearchRoot "OU=TestOU,OU=Staff,OU=Users,OU=Company,DC=Company,DC=co,DC=uk" -Identity { '$_.givenName' -and '$_.sn' }
The csv is laid out,
| description | givenName | sn |
| 12345 | test | user |