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,

There’s a Set-ADAccountExpiration too.