Hi Everyone,
1st, sorry for this long thread
I have this power-shell script (made by spiceworks user Martin900-Martin Pugh -https://community.spiceworks.com/scripts/show/2244...) that gathers users AD that have their passwords expiring based on date(s) I specify. The script runs perfectly, it can also only search for users that belong to a particular AD OU.
What I would like to accomplish is to be able to choose multiple OUs, currently it can only search and filter for one AD OU FQDN. The reason why I need to choose multiple OUs is because our users are placed under country OUs which I would like to send different emails based on their country (i.e. Brazil - email will be sent in Portuguese for users that belongs to Brazil OU, Latin countries - email will be sent in spanish for users belonging to Chile, Nicaragua... OUs)
I have...