How to enable or disable services silently?

3

1

How to run this command in silent mode?

wmic service where name='HomeGroupListener'  call ChangeStartmode Disabled

Jokbon

Posted 2017-03-20T12:58:09.900

Reputation: 31

Answers

0

How to run this in silent mode?

wmic doesn't have a silent switch.

However, you can use redirection to send an errors and output to nul:

wmic service where name='HomeGroupListener' call ChangeStartmode Disabled >nul 2>&1

Further Reading

DavidPostill

Posted 2017-03-20T12:58:09.900

Reputation: 118 938