I'm trying to create a method in C# in which a Snapshot of a Virtual Maschine in Hyper-V is created. I'm using the new microsoft.management.infrastructure Namespace instead of system.management.instrumentation. My biggest problem is to create the CIM_VirtualSystemSettingData object, which i pass to the invoke method as a reference parameter. I [...] read more
What is the exact syntax to shutdown remote Win2k8 server using WMIC? (The reason WMIC must be used is because the remote machine in a different NT Domain and the local machine does not have access to that domain. WMIC takes /user: and /password: parameters and auths against remote machine [...] read more
I want to apply a snapshot with WMI and get an Error called "WS-Management service cannot process the request, unknown error: HRESULT 0x8004102f " This occurs if the parameter set wrong. So I think it has something to do with the input parameter: uint32 ApplySnapshot( [in] CIM_VirtualSystemSettingData REF Snapshot, [out] [...] read more
I am attempting to use SoftwareLicensingService::InstallProductKey to install a product key on Windows 7 through WMI/C++ in a Service. However every time I attempt to call the method via IWbemServices::ExecMethod I get 0x8004102f which is WBEM_E_INVALID_METHOD_PARAMETERS. I thought this was something to do with the product key I am passing, [...] read more
The following command does work in a powershell console Restore-SvnRepository D:\temp\Backup\foo.vsvnbak (Restore-SvnRepository is a command that comes with visualsvn, it expects a path or unc to a file to be restored as parameter) As I need to execute this command for a large number of files (>500) I embedded it [...] read more
I used the mechanism of WMI. Through the modification of dsdt.dsl and production of MOF file, I accomplish the custom WMI function by C#. But there is a problem, when I want to use the C++ - MFC to communicate with the MOF file. While the code runs to the [...] read more
I'm trying to call a method from WMI using C++. But the pNamespace->callMethod(..) fails with an error WBEM_E_INVALID_METHOD_PARAMETERS (0x8004102F). I'm trying to call a method from.. Namespace: ROOT\WMI Class: CLEVO_GET Method: SetKBLED (Static = False) In Params: ID: 0 / Name: Data / Type: uint32 Out Params: None MOF: [WmiMethodId(103), [...] read more