hello all,,,
some body, please tell me.
What the best method for start and stop service from remote machine ?
I tried to stop and start service on remote machine with Windows 7 Os.
Is too hard,
I use ServiceController in my .Net apllication, and the servicecontroller not work.
when I try in command prompt, use SC and PSservice, the machine give me error code 5.
Access Denied.
D:\PsTools>PsService.exe \\T02 -u T02 -p badpassword stop spooler
PsService v2.24 - Service information and configuration utility
Copyright (C) 2001-2010 Mark Russinovich
Sysinternals - www.sysinternals.com
Error querying services on \\T02:
Access is denied.
Error opening spooler on \\T02:
Access is denied.
I have admin right to run comand prompt,
and T02 is Admin right in remote machine.
what needed to solve this ??
Loading
ClonecMr coolPosted Jun 23, 2011, 5:31 AM
Sam HobbsPosted Jun 18, 2011, 11:41 PM
Try searching the articles in this web site for "remote service"; that should help you find articles.
ClonecMr coolPosted Jun 18, 2011, 9:34 PM
Sam HobbsPosted Jun 18, 2011, 12:59 PM
You can also look at such as here, which is often useful. Also the Script Center has a lot of stuff like that and you can use the .Net ManagementClass Class to use WMI in .Net.
Gomathi PalaniswamyPosted Jun 18, 2011, 6:36 AM