I am trying to write a script to shutdown a specific service on a Win2K3
server. My script (copied from a TechNet article) is as follows:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & _
"\root\cimv2")
Set objService = _
objWMIService.Get("Win32_Service.Name='SyndMailBBSvc'")
Return = objSyndMailBounceBack.StopService()
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
When I run the script I get the following error:
swbemservicesEX Not Found
Can anyone tell me where this error is coming from? I can't find much in
the various groups.
Thanks,
Joe