has anybody used the win32_1394controller class in the root\CIMV2 namespace. There are 2 methods "reset" and "set power state".
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?
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?