I'm trying to script / psuedo-automate credential updates.
My goal is to be able to change a User Password without being logged in as the user and doing CTRL+ALT+DEL, without losing access to the Credential Manager Secrets that are wiped when a users password is changed any way except through the CTRL+ALT+DEL password change.
My idea is this :
- On an admin account remotely trigger a Powershell/Command Prompt.
- Utilize "RunAs" to Run the "net user USERNAME PASSWORD" command as that user.
- See if this maintains the Credential Manager and Secrets that are associated with the user account.
However, when I am on the admin account and try to trigger something like
- "Start-Process powershell -Credential USERNAME"
I always get "The service cannot be started, either because it is disabled or it has no enabled devices associated with it."
Google is failing me as most of the services I see that need to be enabled are.