简体   繁体   English

如何在 Windows 10 上远程启动服务

[英]How to tart service remotely on Windows 10

I have tried several methods to start the service remotely but none of them work.我已经尝试了几种远程启动服务的方法,但都不起作用。

So, i try to start Windows Service (TeamViewer) from PC1 (192.168.1.10) on PC2 (192.168.1.20).因此,我尝试在 PC2(192.168.1.20)上从 PC1(192.168.1.10)启动 Windows 服务(TeamViewer)。 All PC are on Windows 10 Pro.所有 PC 都在 Windows 10 Pro 上。

Ping 192.168.1.20 OK平 192.168.1.20 正常

RDP 192.168.1.20 OK RDP 192.168.1.20 正常

CMD in mode Administrator CMD 在管理员模式下

C:\WINDOWS\system32>net use \\192.168.1.20 pass /USER:login
La commande s’est terminée correctement.


C:\WINDOWS\system32>net use
Les nouvelles connexions seront mémorisées.
État         Local     Distant                   Réseau
-------------------------------------------------------------------------------
OK                     \\192.168.1.20\IPC$       Microsoft Windows Network
La commande s’est terminée correctement.

C:\WINDOWS\system32>sc \\192.168.1.20 query TeamViewer
[SC] EnumQueryServicesStatus:OpenService échec(s) 5 :

Accès refusé.


C:\WINDOWS\system32>sc \\192.168.1.20 start TeamViewer
[SC] StartService: OpenService échec(s) 5 :

Accès refusé.


C:\WINDOWS\system32>psexec \\192.168.1.20 -u login -p pass start TeamViewer

PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com

Couldn't access 192.168.1.20:
AccÞs refusÚ.


C:\WINDOWS\system32>psservice \\192.168.1.20 -u 192.168.1.20\login -p pass start TeamViewer

PsService v1.20 - Service information and configuration utility
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Error querying services on \\192.168.1.20:
AccÞs refusÚ.
Error opening TeamViewer on \\192.168.1.20:
AccÞs refusÚ.


C:\WINDOWS\system32>psservice \\192.168.1.20 -u 192.168.1.20\login -p pass start TeamViewer

C:\WINDOWS\system32>
C:\WINDOWS\system32>
C:\WINDOWS\system32>wmic /node:'192.168.1.20' /user:'192.168.1.20\login' /password:'pass' SERVICE WHERE CAPTION='TeamViewer' CALL STARTSERVICE
ERREUR :
Description = Accès refusé.


C:\WINDOWS\system32>psservice \\192.168.1.20 -u 192.168.1.20\login -p pass start TeamViewer

PsService v1.20 - Service information and configuration utility
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com

Error querying services on \\192.168.1.20:
AccÞs refusÚ.
Error opening TeamViewer on \\192.168.1.20:
AccÞs refusÚ.

Powershell in mode Administrator Powershell 在管理员模式下

PS C:\WINDOWS\system32> Get-Service -ComputerName 192.168.1.20 -Name Apache-ignite | Stop-Service -Force
>>
Get-Service : Impossible de trouver un service assorti du nom « Apache-ignite ».
Au caractère Ligne:1 : 1
+ Get-Service -ComputerName 192.168.1.20 -Name Apache-ignite | Stop-Ser ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Apache-ignite:String) [Get-Service], ServiceCommandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.GetServiceCommand

Thanks for your help.谢谢你的帮助。

Add registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System LocalAccountTokenFilterPolicy DWORD Value 1添加注册表 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System LocalAccountTokenFilterPolicy DWORD 值 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM