Avatar of John Davies
John Davies
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Powershell to Expire Groups of people

Password expiration by groups of Username.

What I am looking for is a powershell script or help with one that I can run and expire a group of people from a csv file. So for example

People with the surname beginning with A to E then F to I and so on......

I would populate the spreasheet but just need to expire people passwords in groups rather than expiring everyone in one hit. The reason i am wanting this I am implementing a new password policy and as we have over 2500 users I would rather expire them and have them change the password on next login in chunks on a weekely basis.

Thanks

John
PowershellMicrosoft 365

Avatar of undefined
Last Comment
John Davies

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Jose Gabriel Ortega Castro

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
John Davies

ASKER
Sorry Jose, forgot to mention that this is a pure cloud office 365 solution, no on prem or hybrid.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck