I need to be able to change the PasswordNeverExpires option in the Local User Group properties area.

I already know that I will have to use a flag in order to perform this action as stated in the article:
How to use the UserAccountControl flags to manipulate user account properties
How would I be able to target the user in question through a Powershell script?
Thanks
This will also work.
Set-LocalUser -Name "Administrator" -PasswordNeverExpires:$true
See: https://technet.microsoft.com/en-us/library/mt651674.aspx?f=255&MSPPError=-2147217396
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With