Bạn có thể sử dụng lệnh SC.
sc.exe \\remotecomputer create newservice binpath= C:\Windows\System32\Newserv.exe start= auto obj= DOMAIN\username password= pwd
(Lưu ý các không gian sau dấu bằng là quan trọng)
Creates a service entry in the registry and Service Database.
SYNTAX:
sc create [service name] [binPath= ] <option1> <option2>...
CREATE OPTIONS:
NOTE: The option name includes the equal sign.
type= <own|share|interact|kernel|filesys|rec>
(default = own)
start= <boot|system|auto|demand|disabled>
(default = demand)
error= <normal|severe|critical|ignore>
(default = normal)
binPath= <BinaryPathName>
group= <LoadOrderGroup>
tag= <yes|no>
depend= <Dependencies(separated by/(forward slash))>
obj= <AccountName|ObjectName>
(default = LocalSystem)
DisplayName= <display name>
password= <password>
Nguồn
2009-07-21 13:06:10
Có vẻ thực sự hứa hẹn, nhưng tôi có phải trả tiền cho nó không? – Grzenio
Được bao gồm trong Windows, có thể trong Bộ tài nguyên, bắt đầu một dấu nhắc lệnh và gõ sc để xem cài đặt của nó có được không. –
Thực ra nó ở trên máy của tôi, cổ vũ. – Grzenio