NetIntruder
MIS
Hey all,
I'm trying to set the Terminal connection options via WMI in C# with the following code and failing with a "Not Found" error on my inParams object. Anyone have any thoughts as to what i'm doing wrong?
string RDP = "RDP-Tcp";
ManagementScope scope = new ManagementScope("\\\\" + tbComputerName.Text + "\\root\\cimv2");
ManagementPath path = new ManagementPath("Win32_TSClientSetting.TerminalName='" + RDP + "'");
ManagementObject obj = new ManagementObject(scope, path, null);
inParams = obj.GetMethodParameters("SetClientProperty");
inParams["clipboardmapping"] = 1;
inParams["DriveMapping"] = 1;
ManagementBaseObject outParams = obj.InvokeMethod("SetClientProperty", inParams, null);
~Intruder~
CEH, CISSP, MCSA/MCSE 2000/2003
I'm trying to set the Terminal connection options via WMI in C# with the following code and failing with a "Not Found" error on my inParams object. Anyone have any thoughts as to what i'm doing wrong?
string RDP = "RDP-Tcp";
ManagementScope scope = new ManagementScope("\\\\" + tbComputerName.Text + "\\root\\cimv2");
ManagementPath path = new ManagementPath("Win32_TSClientSetting.TerminalName='" + RDP + "'");
ManagementObject obj = new ManagementObject(scope, path, null);
inParams = obj.GetMethodParameters("SetClientProperty");
inParams["clipboardmapping"] = 1;
inParams["DriveMapping"] = 1;
ManagementBaseObject outParams = obj.InvokeMethod("SetClientProperty", inParams, null);
~Intruder~
CEH, CISSP, MCSA/MCSE 2000/2003