This allows you to easily redirect your existing RDP session to the console so it will maintain an active Desktop.   This code has a UI to perform the redirect, but to actually use it with your automation, you would need to incorporate it into your code as once it's run it will kick you out of the RDP session since it was redirected to the console.  When I was using this, I had another automation running in the background so I ran this to redirect to console and my other automation script r