Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

more wmi issues

Status
Not open for further replies.

bouwob

Programmer
Apr 12, 2006
171
US
has anybody used the win32_1394controller class in the root\CIMV2 namespace. There are 2 methods "reset" and "set power state".
Code:
         try 
          { 
              ManagementObject mo = new ManagementObject(@"\\" + strComputerName + @"\root\CIMV2", "Win32_1394Controller", null); //errors here 
              // Execute the method and obtain the return values. 
              ManagementBaseObject outParams = mo.InvokeMethod("Reset", null, null); 
          } 
          catch (ArgumentOutOfRangeException ex) 
          { 
              string hhh = ex.ToString(); 
          } 
          catch (ManagementException err) 
          { 
              Console.WriteLine("An error occurred while trying to execute the WMI method: " + err.Message); 
          }

ok so I am having trouble getting my reset script to work
the error I am recieving is
Specified argument was out of the range of valid values.\r\nParameter name: path"} System.ArgumentOutOfRangeException

sounds like an array issue but I am not using an array.

So I am getting a path problem. I have a reset and power save script that is giving me the same error.

is there issues with using the "Win32_1394Controller" class?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top