Click here to Skip to main content
15,916,462 members
Home / Discussions / C#
   

C#

 
AnswerRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 8:50
mveDave Kreskowiak31-May-07 8:50 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 8:53
Le centriste31-May-07 8:53 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 9:03
mveDave Kreskowiak31-May-07 9:03 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 9:06
Le centriste31-May-07 9:06 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 9:18
mveDave Kreskowiak31-May-07 9:18 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 9:23
Le centriste31-May-07 9:23 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 9:32
mveDave Kreskowiak31-May-07 9:32 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 9:42
Le centriste31-May-07 9:42 
I cannot post the code for 2 reasons:

- It is too complicated, you would have to go through many pages, in many assemblies.
- I have signed an NDA which prevents me giving you complete code, or I can get sued.

Basically, it follows the following steps:

- I create a ManagementScope object and connect it. (this object is reused, is this the problem?)
- I create a ManagementObjectSearch object, giving it the ManagementScope object created earlier.
- I perform a search and get a ManagementBaseObject from it, on which I try to perform a SetPropertyValue that is not working.

So, do you know any reason why a the ManagementBaseObject.SetPropertyValue would not work? Do I have to do another step?

You know, if somebody would ask me "I am adding a row in a DataSet but it is not reflected in the database, what is wrong?" I wouldn't need the complete code from him to figure out that he did not save the DataSet.

Thanks for your answers, even if you try to make me look like a complete idiot.



-----

Formerly MP(2)

If atheism is a religion, then not collecting stamps is a hobby. -- Unknown

GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 10:19
mveDave Kreskowiak31-May-07 10:19 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 10:34
Le centriste31-May-07 10:34 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 10:24
mveDave Kreskowiak31-May-07 10:24 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 10:38
Le centriste31-May-07 10:38 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 13:04
mveDave Kreskowiak31-May-07 13:04 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 13:29
Le centriste31-May-07 13:29 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Dave Kreskowiak31-May-07 13:39
mveDave Kreskowiak31-May-07 13:39 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 13:42
Le centriste31-May-07 13:42 
GeneralI think I found the problem Pin
Le centriste31-May-07 13:41
Le centriste31-May-07 13:41 
GeneralRe: I think I found the problem Pin
Dave Kreskowiak31-May-07 17:22
mveDave Kreskowiak31-May-07 17:22 
GeneralRe: I think I found the problem Pin
Le centriste1-Jun-07 0:45
Le centriste1-Jun-07 0:45 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Luc Pattyn31-May-07 11:00
sitebuilderLuc Pattyn31-May-07 11:00 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste31-May-07 13:43
Le centriste31-May-07 13:43 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Luc Pattyn31-May-07 16:03
sitebuilderLuc Pattyn31-May-07 16:03 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste1-Jun-07 2:43
Le centriste1-Jun-07 2:43 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Luc Pattyn1-Jun-07 2:53
sitebuilderLuc Pattyn1-Jun-07 2:53 
GeneralRe: ManagementBaseObject.SetPropertyValue not working Pin
Le centriste1-Jun-07 3:07
Le centriste1-Jun-07 3:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.