Hello--
I am new to PowerShell and I have been working on a script which isn't yet functional or close to right. I have to query AD to get "All users, several attributes of the users, but also exclude specific OUs and things like the built-in accounts that start with a certain name, such as System or something".
It has to be in a csv file if possible and emailed automatically as I have to schedule the report to run.
Can anyone help me with this please? I am working away and trying, but I"m getting stuck.