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
exit
These are just random notes and programs that may have incomplete descriptions. Any scripts or programs use at your risk
Subscribe to:
Post Comments (Atom)
-
Running solidcore you may run into a problem where you have to disable it with out using epo or the local CLI Here are the steps. ...
-
Wrote this to get certificate expiration information for certificates that expired 5 days ago to ones that expire in 90 days. Wrap an invoke...
-
List Certificate Templates function get-CertificateTemplates { [ CmdletBinding ()] Param ( [ Parameter ( Mandatory = $True, Va...
No comments:
Post a Comment