How to sync Windows password with current session after password reset? [migrated]

I am writing an application to do the following procedures automatically:

It resets (or change – I know the old password) Windows local Administrator password using net user Administrator *
After resetting Windows password, it encrypts a … Continue reading How to sync Windows password with current session after password reset? [migrated]