Jump to content

How can I set the "description" field of a cluster resource


Recommended Posts

Hello All,

I have a WMI Script which gives the name and description of all the resources in a cluster server.

On Error Resume Next
strComputer = "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

Next

And 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


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...