kalcee Posted August 6, 2008 Share 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 Link to comment Share on other sites More sharing options...
ReDucTor Posted August 6, 2008 Share 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" Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now