在 Windows 7 中以管理员用户身份运行 explorer.exe
我有 Windows 7 操作系统,并且存储了管理员用户凭据(提前知道)。
我知道我们可以使用“Runas”动词运行程序或 .exe 并启动进程,但我的问题特定于 explorer.exe。我正在尝试运行“runas /user:”control.exe Printers”,它在提示输入密码后成功启动,但是当我在 TaskManager 中检查时,它正在我登录的常规用户下运行。
我有注意到这仅适用于 explorer.exe。其他程序在 runas 上运行正常。Windows
7 有何问题?或者如何使用打印机运行 explorer.exe 或 control.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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在 Windows 7 中,禁用以与已使用“runas”命令登录的用户不同的用户身份运行 explorer.exe。但是有一个解决方法:
执行此操作后,explorer.exe 将以 RunAs.exe 命令中指定的用户身份启动!
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:
After doing this explorer.exe will launch as the user specified in the RunAs.exe command!
此版本适用于 Windows 7、8.0 和 8.1
HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
现在转到C:\Windows\Explorer.exe并创建桌面快捷方式(使用发送到)。
右键单击并以管理员身份运行。这应该以其他用户身份打开 Windows 资源管理器。
This one works for Windows 7, 8.0 and 8.1
HKEY_CLASSES_ROOT\AppID\{CDCBCFCA-3CDC-436f-A4E2-0E02075250C2}
Now go to C:\Windows\Explorer.exe and create a shortcut to desktop (use Send To).
Right click and run as Administrator. This should open Windows Explorer as a different user.
Windows 资源管理器喜欢在与 shell(又名任务栏)相同的进程中打开新窗口。
您可以尝试:
这应该在新进程中打开“Computer\ControlPanel\Printers”...
Windows Explorer likes to open new windows in the same process as the shell aka taskbar.
You could try:
This should open "Computer\ControlPanel\Printers" in a new process...
尝试下面的代码:
Try Below Code :