Saturday, March 5, 2016

Powershell create,start and delete service at remote computer


SET user=abc\testadmin
SET pass=mypass

sc \\testcomputer123.tech-jockey.com create "DummyAspService" binpath= D:\DummyAspService\DummyAspService.exe start= auto OBJ= %user% PASSWORD= %pass%


sc \\testcomputer123.tech-jockey.com START "DummyAspService" OBJ= %user% PASSWORD= %pass%


sc \\testcomputer123.tech-jockey.com Delete "DummyAspService" OBJ= %user% PASSWORD= %pass%

No comments:

Post a Comment

Thanks for showing interest in tech-jockey.

Content of this blog has been moved to GITHUB

Looking at current trends and to make my content more reachable to people, I am moving all the content of my blog https://tech-jockey.blogsp...