Im trying to run a process as another account. I have the command...
我试着用另一个帐号来运行一个进程。我已经命令……
runas "/user:WIN-CLR8YU96CL5\network service" "abwsx1.exe"
/ user runas”:WIN-CLR8YU96CL5 \网络服务”“abwsx1.exe”
but then this asks for the password. However there is no password set for the network service.
然后这要求输入密码。但是,网络服务没有设置密码。
Is what im trying to do possible?
我想做的是什么?
System Local Service Network Service
系统本地服务网络服务。
4 个解决方案
#1
79
Use PsExec.exe from SysInternals.
使用PsExec。从SysInternals的exe。
e.g. this will open a new command prompt running as NETWORK SERVICE:
这将打开一个新的命令提示符作为网络服务运行:
psexec -i -u "nt authority\network service" cmd.exe
this will run it as LOCAL SYSTEM:
这将作为本地系统运行:
psexec -i -s cmd.exe
You can verify these by running whoami
from the cmd prompt.
您可以通过从cmd提示符运行whoami来验证这些。
See also:
参见:
-
http://forum.sysinternals.com/how-to-start-cmdexe-as-network-service_topic15797.html
http://forum.sysinternals.com/how-to-start-cmdexe-as-network-service_topic15797.html
-
Interactive command prompt as NETWORK SERVICE
交互式命令提示符作为网络服务。
#2
13
In Task Scheduler, create a task to run the application under the NETWORK SERVICE user. You can then run the task from the command line using
在任务调度器中,创建一个任务来运行在网络服务用户下的应用程序。然后,可以使用命令行运行任务。
schtasks /run /TN "taskname"
Where taskname is the name of your task.
其中,taskname是任务的名称。
#3
4
You can only impersonate as serivce account from a Windows service typically, like this post mentioned,
您只能从Windows服务中扮演serivce帐户,就像本文提到的,
http://geek.hubkey.com/2008/02/impersonating-built-in-service-account.html
http://geek.hubkey.com/2008/02/impersonating-built-in-service-account.html
If you try to do that in your own user context, then such attempts should fail.
如果您在自己的用户环境中尝试这样做,那么这种尝试应该失败。
#4
0
i have test 'PsExec -i -s cmd.exe' and 'PsExec -i -u "nt authority\network service" cmd.exe' on PsExec64-v2.2, for win10-home-x64-10.0.14393 and win10-pro-x64-10.0.15063 to use normal console it's failed, use elevated console it works fine
我有test 'PsExec -i -s cmd。exe'和'PsExec -i -u ' nt权限\网络服务" cmd。在PsExec64-v2.2中,对于win10-home-x64-10.0.14393和win10-pro-x64-10.0.15063使用正常的控制台,它是失败的,使用高架控制台它运行良好。
#1
79
Use PsExec.exe from SysInternals.
使用PsExec。从SysInternals的exe。
e.g. this will open a new command prompt running as NETWORK SERVICE:
这将打开一个新的命令提示符作为网络服务运行:
psexec -i -u "nt authority\network service" cmd.exe
this will run it as LOCAL SYSTEM:
这将作为本地系统运行:
psexec -i -s cmd.exe
You can verify these by running whoami
from the cmd prompt.
您可以通过从cmd提示符运行whoami来验证这些。
See also:
参见:
-
http://forum.sysinternals.com/how-to-start-cmdexe-as-network-service_topic15797.html
http://forum.sysinternals.com/how-to-start-cmdexe-as-network-service_topic15797.html
-
Interactive command prompt as NETWORK SERVICE
交互式命令提示符作为网络服务。
#2
13
In Task Scheduler, create a task to run the application under the NETWORK SERVICE user. You can then run the task from the command line using
在任务调度器中,创建一个任务来运行在网络服务用户下的应用程序。然后,可以使用命令行运行任务。
schtasks /run /TN "taskname"
Where taskname is the name of your task.
其中,taskname是任务的名称。
#3
4
You can only impersonate as serivce account from a Windows service typically, like this post mentioned,
您只能从Windows服务中扮演serivce帐户,就像本文提到的,
http://geek.hubkey.com/2008/02/impersonating-built-in-service-account.html
http://geek.hubkey.com/2008/02/impersonating-built-in-service-account.html
If you try to do that in your own user context, then such attempts should fail.
如果您在自己的用户环境中尝试这样做,那么这种尝试应该失败。
#4
0
i have test 'PsExec -i -s cmd.exe' and 'PsExec -i -u "nt authority\network service" cmd.exe' on PsExec64-v2.2, for win10-home-x64-10.0.14393 and win10-pro-x64-10.0.15063 to use normal console it's failed, use elevated console it works fine
我有test 'PsExec -i -s cmd。exe'和'PsExec -i -u ' nt权限\网络服务" cmd。在PsExec64-v2.2中,对于win10-home-x64-10.0.14393和win10-pro-x64-10.0.15063使用正常的控制台,它是失败的,使用高架控制台它运行良好。