My scheduled task exe runs under a domain account. I need to set an environment variable for that account but logging in as me.
I did StackOverFlow some answers where they suggest editing the registry for the SID of that account but I couldn’t find that SID in the HKEY_USERS.
I tried using SETX but was not sure of the /s parameter, as the docs suggest “Remote Computer”. Is there any way I can log in as me to that remote computer where the scheduled job runs and set an environment variable for that service account?
Thanks!