通过CMD注册Windows服务

 

           之前一直这样写一直也是注册成功,今天却遇到了问题SC Manager 失败

 

           sc create  RenService binPath=  C:\Tools\StateAndRestartService\VNCSelf.WindowsService.exe  注意等号后面要有一个空格

 

 解决方案:

        修改注册表-运行-regedit-打开注册表依次找到:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA 的值改为0

 

        修改其值为0

   

        电脑重启,再次CMD 注册成功

 

 

   

相关文章:

  • 2022-12-23
  • 2021-06-21
  • 2021-10-08
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2021-12-12
  • 2021-12-03
猜你喜欢
  • 2021-08-16
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
  • 2021-10-22
  • 2021-08-31
  • 2021-12-12
相关资源
相似解决方案