我如何“作为"“网络服务"运行? [英] How do I 'run as' 'Network Service'?

查看:12
本文介绍了我如何“作为"“网络服务"运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以另一个帐户的身份运行一个进程.我有命令:

I am trying to run a process as another account. I have the command:

runas "/user:WIN-CLR8YU96CL5
etwork service" "abwsx1.exe"

但是这要求输入密码.但是没有为网络服务设置密码.

but then this asks for the password. However there is no password set for the network service.

我正在尝试做的事情可行吗?

Is what I am trying to do possible?

推荐答案

使用 PsExec来自 SysInternals 的 .exe,从提升的命令提示符运行.

Use PsExec.exe from SysInternals, running from an elevated command prompt.

例如这将打开一个作为 NETWORK SERVICE 运行的新命令提示符:

e.g. this will open a new command prompt running as NETWORK SERVICE:

psexec -i -u "nt authority
etwork service" cmd.exe 

这将作为本地系统运行:

this will run it as LOCAL SYSTEM:

psexec -i -s cmd.exe 

您可以通过从 cmd 提示符运行 whoami 来验证这些.

You can verify these by running whoami from the cmd prompt.

另见:

作为网络服务的交互式命令提示符

这篇关于我如何“作为"“网络服务"运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆