#141438 - 2005-06-10 11:51 AM
Service stop/start/query - n WMI
|
awheelhouse
Fresh Scripter
Registered: 2005-06-02
Posts: 11
Loc: Leeds, UK
|
Is there a function that works with services without the remote computer having WMI installed? I've tried searching, but the internet connection at work is very poorly at the moment, and search results take ages to appear, and I often lose the connection.
Can someone point me in the right direction?
thanks
|
Top
|
|
|
|
#141444 - 2005-06-13 11:47 AM
Re: Service stop/start/query - n WMI
|
awheelhouse
Fresh Scripter
Registered: 2005-06-02
Posts: 11
Loc: Leeds, UK
|
sealeopard,
I need to stop 4 services, this is the original batch file code:-
sc \\%1 stop "AlertManager" sc \\%1 stop "McAfeeFramework" sc \\%1 stop "McTaskManager" sc \\%1 stop "MCSHIELD"
and then make some changes to reg keys and restart the services
I'm doing this at the moment:-
Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "AlertManager"' Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "McAfeeFramework"' Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "McTaskManager"' Run 'c:\software\kix\sc.exe \\'+$Computer +' stop "MCSHIELD"'
But it would be neater to do it without using sc.exe
thanks
|
Top
|
|
|
|
#141446 - 2005-06-13 02:18 PM
Re: Service stop/start/query - n WMI
|
awheelhouse
Fresh Scripter
Registered: 2005-06-02
Posts: 11
Loc: Leeds, UK
|
Chris,
My internet issues were just related to my own internet access, not running the scripts. I was having problems on friday using the forum. I'm ok using SC, just wanted to know if there was a kix function that was neater that didn't use WMI and I couldn't search for it.
thanks
thanks
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 430 anonymous users online.
|
|
|