在Windows 7中以管理员用户身份运行explorer.exe [英] Run explorer.exe as Administrator user within Windows 7
问题描述
我具有Windows 7操作系统,并且已经存储了管理员用户凭据(预先知道).
我知道我们可以使用"Runas"动词运行程序或.exe并启动一个进程,但是我的问题特定于explorer.exe.我正在尝试运行"runas/user:control.exe打印机",它会在提示输入密码后成功启动,但是当我在TaskManager中检查时,它正在我登录的普通用户下运行.>
我注意到这仅与explorer.exe有关.其他程序在runas上运行正常.
Windows 7有何收获?或如何在打印机上运行explorer.exe或control.exe?
在Windows 7中,已禁用以不同于已经使用"runas"命令登录的用户身份运行explorer.exe.但是有一种解决方法这个:
- 开始->运行-> regedit
- 导航至注册表项:HKEY_CLASSES_ROOT \ AppID {CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
- 右键单击注册表项,然后单击权限...".
- 授予已登录用户的完全控制权限.
- 开始->运行-> dcomcnfg.exe->展开DCOM配置
- 右键单击并选择高架浏览器工厂"的属性,单击身份"选项卡,然后选择启动用户"
完成此操作后,explorer.exe将以RunAs.exe命令中指定的用户身份启动!
I have the Windows 7 operating system, and I have administrator user credentials stored (known in advance).
I know we can run a program or .exe using "Runas" verb and launch a process, but my question is specific to explorer.exe. I am trying to run "runas /user: "control.exe printers" it launches successfully after giving a password to the prompt, but when I am checking within TaskManager it is running under my regular user with which I have logged on.
I have noticed this is only with explorer.exe. Other programs are working fine as expected with runas.
What is the catch here with Windows 7? Or how do I run explorer.exe or control.exe with printers?
Running explorer.exe as a user different from the one that is already logged in using "runas" command is disabled in Windows 7. But there is a workaround for this:
- Start -> Run -> regedit
- Navigate to the registry key: HKEY_CLASSES_ROOT\AppID{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
- Right click on the registry key and click Permissions...
- Give Full Control permissions to the user logged in.
- Start -> Run -> dcomcnfg.exe -> Expand DCOM Config
- Right click and select properties of "Elevated-Unelevated Explorer Factory", click the Identity tab and select "The launching user"
After doing this explorer.exe will launch as the user specified in the RunAs.exe command!
这篇关于在Windows 7中以管理员用户身份运行explorer.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!