View Single Post
  #2 (permalink)  
Old 02-09-2008
Mark L. Ferguson
 

Posts: n/a
Re: iSCSI Service Won't Start?
Most often, failure for a service is that it is 'disabled' (instead of
manual or auto) in the services app, or some dependant service is disabled.
This script will tell you about the dependant services for iSCSI. (in
c:\service_dependencies.csv) open in notepad.
--dependency.vbs--
Const ForAppending = 8
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objLogFile = _
objFSO.OpenTextFile("c:\service_dependencies.csv", _
ForAppending, True)
objLogFile.Write("Service Dependencies")
objLogFile.Writeline

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service")

For Each objService in colListofServices
objServiceRegistryName = objService.Name
objServiceDisplayName = objService.DisplayName

Set colServiceList = objWMIService.ExecQuery("Associators of " _
& "{Win32_Service.Name='" & objServiceRegistryName & "'} Where
AssocClass=Win32_DependentService Role=Antecedent" )


If colServiceList.Count = 0 then
objLogFile.Write(objServiceDisplayName) & ", None"
objLogFile.Writeline
Else
For Each objDependentService in colServiceList
objLogFile.Write(objServiceDisplayName) & ","
objLogFile.Write(objDependentService.DisplayName)
Next
objLogFile.WriteLine
End If
Next
objLogFile.Close
--end file--
--
Was this helpful? Then click the Ratings button. Voting helps the web
interface.
http://www.microsoft.com/wn3/locales....htm#RateAPost

Mark L. Ferguson

..
"Julian" <msforums@tiger2.notthisbit.demon.co.uk> wrote in message
news:%23I1SDy0aIHA.356@TK2MSFTNGP03.phx.gbl...
> [Vista HP] It used to; now it says (manual start attempt) "Error 1717: the
> interface is unknown"
>
> Can it be fixed??
>
> TIA
>
> --
> Julian I-Do-Stuff
>
> Some Vista stuff, but mostly just Stuff at http://berossus,blogspot.com


Reply With Quote