--
Have a Better One,
Edward Crosby
http://www.edwardcrosby.com
-----
"There are no atheists in foxholes or firmware updates."
Merlin Mann
sComputer = "."
aTargetSvcs= Array("SERVICE1","SERVICE2","SERVICE3")
Set oWMIService = GetObject("winmgmts:" &
"{impersonationlevel=impersonate}!\\" _
& sComputer & "\root\cimv2")
Set cServices = oWMIService.ExecQuery("SELECT * FROM Win32_Service")
For Each oService In cServices
For Each sTargetSvc In aTargetSvcs
If LCase(oService.Name) = LCase(sTargetSvc) Then
If oService.State <> "Stopped" Then
oService.StopService()
End If
If oService.StartMode <> "Disabled" Then
oService.ChangeStartMode("Disabled")
End If
End If
Next
Next
The other suggestion over there, if you were going to create a batch file,
is to use the sc.exe command; 'sc stop' and 'sc config'
> --
> You received this message because you are subscribed to the Google Groups
> "The Unique Geek" group.
> To post to this group, send email to theuni...@googlegroups.com.
> To unsubscribe from this group, send email to
> theuniquegee...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/theuniquegeek?hl=en.
>
>
End If
Next
Next
[The entire original message is not included]
1. Powershell
2. Microsoft System Center - all products, but mostly System Center
Operations Manager and Configuration Manager
There have been job recruiters that I have spoken with in the past few
months that have stated that there are many companies out there looking
for Operations Manager and Configuration Manager experience, but mostly
Operations Manager.
net stop servicename /yes
sc config "servicename" start= disabled
--
Have a Better One,
Edward Crosby
http://www.edwardcrosby.com
-----
"There are no atheists in foxholes or firmware updates."
Merlin Mann
> Would this be easier?
>> *
>> Code below:*
>>> >> theuniquegee...@googlegroups.com<theuniquegeek%2Bunsu...@googlegroups.com>
>>> .
>>> >> For more options, visit this group at
>>> >> http://groups.google.com/group/theuniquegeek?hl=en.
>>> >>
>>> >>
>>> >
>>> >
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> Groups
>>> > "The Unique Geek" group.
>>> > To post to this group, send email to theuni...@googlegroups.com.
>>> > To unsubscribe from this group, send email to
>>> > theuniquegee...@googlegroups.com<theuniquegeek%2Bunsu...@googlegroups.com>
>>> .
>>> > For more options, visit this group at
>>> > http://groups.google.com/group/theuniquegeek?hl=en.
>>> >
>>> >
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups
>>> "The Unique Geek" group.
>>> To post to this group, send email to theuni...@googlegroups.com.
>>> To unsubscribe from this group, send email to
>>> theuniquegee...@googlegroups.com<theuniquegeek%2Bunsu...@googlegroups.com>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/theuniquegeek?hl=en.
>>>
>>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups
>> "The Unique Geek" group.
>> To post to this group, send email to theuni...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> theuniquegee...@googlegroups.com<theuniquegeek%2Bunsu...@googlegroups.com>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/theuniquegeek?hl=en.
>>
>
>
>
> --
> Jim
>
> blog ~ http://blog.k12virtualization.com
> "Keep moving Forward"
>