Here is the code I use to search the ARP table. ![]() I then search the ARP table to get the IP address, host name and MAC Address. To get the MAC address I usually Ping the Host computer which then puts the results into the ARP table. Before posting, please search for your answer in these forums and the TechNet documentation. In vbs I get macadress from sccm simply m.MACAddress(0) how the same I should write in C# m Configuration Manager 2012 - SDK and PowerShell Post questions here that are appropriate for the Configuration Manager 2012 software development kit or automation via PowerShell. MacAdd="MAC Address: " + m.ToString() īut in sccm MACAddress is string array type so I can not receive from sccm macaddress, program receive information "No data". ManagementObjectCollection quer圜ollection = searcher.Get() įoreach (ManagementObject m in quer圜ollection) ManagementObjectSearcher searcher = new ManagementObjectSearcher(scope, query) Query = new ObjectQuery("selectSMS_R_System.MACAddresses from SMS_R_System where SMS_R_System.Name='" + STRCompName + "' and SMS_R_System.OperatingSystemNameandVersion like '%Workstation 5.1%'") Problem is that MacAddress in colection sccm is written in string Array. I know how to do in vbsīut I have some problems in C#. ![]() Las time I would like to get from some collection MacAddres for some station. I write some C# program, which help me with administration sccm system. ![]() I have read this forum and I found very much usefull solution for C# developer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |