Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Email Users their password is Expiring - search with multiple AD OUs FQDN

$
0
0

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...


Viewing all articles
Browse latest Browse all 15370

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>