My goal is to to force all users in a certain OU to change their passwords at next login. So let’s get started. First I need to get a list of my users accounts. We know we can use get-aduser -filter * to get all the users and their properties, however I only want …
Tag Archives: powershell
Bulk User Creation in Powershell
It seems like the most common way to create users in powershell via the ad module is by using the “import-csv” command and then running a foreach-object on new-aduser. I got the original script from a couple of people on reddit and some blogs on Google. There’s not much uniqueness to it besides taking the …