I'm currently using this https://forums.mydigitallife.net/th...th-regular-user-and-admin.79962/#post-1536830 on a script. This first does non-admin stuff, then elevates to admin, quits non-admin session, and opens a brand new CMD session as admin user to do the rest. So I'm running 2 different CMD sessions. I set a variable myvar=foo in the first unprivileged session. It's only valid for that session obviously. Is there a way to pass that variable value to the privileged CMD session once it starts?