kalcee Posted August 6, 2008 Posted August 6, 2008 Hello All,I have a WMI Script which gives the name and description of all the resources in a cluster server.On Error Resume NextstrComputer = "ABCD" Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MSCluster") Set colItems = objWMIService.ExecQuery("SELECT * FROM MSCluster_Resource'") For Each objItem In colItems WScript.Echo "Description: " & objItem.Description WScript.Echo "Name: " & objItem.Name NextAnd thus I have a list of resources with names and descriptions. Now my problem is that I have a new set of descriptions to be pushed back into the resource description field. How can I do that? If it was a normal shared folder in a local computer we can use the method 'SetShareInfo'. But I have no clue how to do this for a resource. Any help appreciated.Thank You
ReDucTor Posted August 6, 2008 Posted August 6, 2008 http://msdn.microsoft.com/en-us/library/aa371464(VS.85).aspxDescription Data type: string Access type: Read/write Provides access to the resource's Description property. Inherited from MSCluster_LogicalElement.objItem.Description = "ahaha"
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now