How to create a service with WMIC?
up vote
1
down vote
favorite
I wrote a service program with WinAPI functions with c++ And I want to create that by wmic.exe in service manager with bellow command :
service create name="test" where path = "C:UsersmsiDesktopSampleService.exe"
But it give me the error :
Invalid format.
Hint: <assignlist> = <propertyname>=<propertyvalue> [, <assignlist>].
How can i create a service with wmic.exe tool?
services wmic
add a comment |
up vote
1
down vote
favorite
I wrote a service program with WinAPI functions with c++ And I want to create that by wmic.exe in service manager with bellow command :
service create name="test" where path = "C:UsersmsiDesktopSampleService.exe"
But it give me the error :
Invalid format.
Hint: <assignlist> = <propertyname>=<propertyvalue> [, <assignlist>].
How can i create a service with wmic.exe tool?
services wmic
why not use sc.exe from normal commandline? is wmic requirement?
– Drako
1 hour ago
@Drako I knowsc.exebut i have to use ofwmic.
– Mohammadreza Panahi
1 hour ago
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I wrote a service program with WinAPI functions with c++ And I want to create that by wmic.exe in service manager with bellow command :
service create name="test" where path = "C:UsersmsiDesktopSampleService.exe"
But it give me the error :
Invalid format.
Hint: <assignlist> = <propertyname>=<propertyvalue> [, <assignlist>].
How can i create a service with wmic.exe tool?
services wmic
I wrote a service program with WinAPI functions with c++ And I want to create that by wmic.exe in service manager with bellow command :
service create name="test" where path = "C:UsersmsiDesktopSampleService.exe"
But it give me the error :
Invalid format.
Hint: <assignlist> = <propertyname>=<propertyvalue> [, <assignlist>].
How can i create a service with wmic.exe tool?
services wmic
services wmic
asked 1 hour ago
Mohammadreza Panahi
1157
1157
why not use sc.exe from normal commandline? is wmic requirement?
– Drako
1 hour ago
@Drako I knowsc.exebut i have to use ofwmic.
– Mohammadreza Panahi
1 hour ago
add a comment |
why not use sc.exe from normal commandline? is wmic requirement?
– Drako
1 hour ago
@Drako I knowsc.exebut i have to use ofwmic.
– Mohammadreza Panahi
1 hour ago
why not use sc.exe from normal commandline? is wmic requirement?
– Drako
1 hour ago
why not use sc.exe from normal commandline? is wmic requirement?
– Drako
1 hour ago
@Drako I know
sc.exe but i have to use of wmic.– Mohammadreza Panahi
1 hour ago
@Drako I know
sc.exe but i have to use of wmic.– Mohammadreza Panahi
1 hour ago
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374968%2fhow-to-create-a-service-with-wmic%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
why not use sc.exe from normal commandline? is wmic requirement?
– Drako
1 hour ago
@Drako I know
sc.exebut i have to use ofwmic.– Mohammadreza Panahi
1 hour ago