流沙枫 发表于 2013-10-15 19:41:09

ServiceControl.au3出错?

本帖最后由 流沙枫 于 2013-10-15 19:43 编辑

#include <ServiceControl.au3>
If _ServGetState('secondary logon') = "Running" Then
             MsgBox(0, 0, 'secondary logon Is Running')
   Else
MsgBox(0, 0, 'secondary logon Is NOT Running')
RunAs ( "admin", "local", "passwd", 0, "secondary logon.exe")
_SerSetState(“secondary logon”, 1)
_servstart(“secondary logon”)
      EndIf

提示348行error,表达式错误..
没有secondary logon服务就不能用runas了?

流沙枫 发表于 2013-10-17 16:45:56

好像用API控制就能成功,用WMI就出错了?

kfsyosf 发表于 2013-10-22 14:03:36

看看看看看看看看看看
页: [1]
查看完整版本: ServiceControl.au3出错?