I'm using the following command in a PowerShell
script to create new local user accounts. The account is created successfully, the correct password is set and I can logon to it fine.
NET USER USER_01 "Password" /ADD /expires:NEVER /fullname:"USER_01" /comment:"MY Comment"
But after about 1 to 2 weeks the account suddenly expires and I'm no longer able to RDP to the account.
I have tried both the parameters /expires:NEVER
and /expires:0
but both still expire down the line.
Am I missing something here?