Why does PowerShell only close when it's elevated in certain ways?

S

Shawn Harriman2

Hey! I been having a problem for a long time, which I had been using a work around for, but trying to circle back and fix this as I want to clean up how my script runs.My script is a batch file which does some work and then runs a script in PowerShellI'm looking to move this all to PowerShell, but what's the point if I can't overcome this obstacle, it's not worth converting the batch code to PowerShell. at that point.Here's when it works and doesn't work:Doesn't Work:Right clicking batch file and running as adminHaving PowerShells #Requires -RunAsAdministratorHaving Command Prompt check if adm

Continue reading...
 
Back
Top Bottom