Run explorer using the Runas Command

Little batch file i made to run explorer using the runas command.

It adds a registry key to the current user hive that is being used to to run explorer as a different user.

@Echo Off
Echo Importing Key
reg add "HKCU\software\microsoft\windows\currentversion\explorer\advanced" /v SeparateProcess /t REG_DWORD /d 00000001 /f
Echo Reg Key imported

Echo Starting Explorer

explorer /e

Echo Closing Explorer
reg add "HKCU\software\microsoft\windows\currentversion\explorer\advanced" /v SeparateProcess /t REG_DWORD /d 00000000 /f


Popular posts from this blog

Powershell - Com+ Application Recycle

Powershell : Certutil Find Expired Certs on CA server