How to set Expiration date for all my domain users to be 180 days

Hi everyone,

This question might sound very simple but i appreciate if someone can help me here.
How can i change password expiration date for all the users in my domain to be 180 days?

Thanks in advanced,

https://docs.microsoft.com/en-us/powershell/module/addsadministration/set-aduser?view=win10-ps

There’s a Set-ADAccountExpiration too.