|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Find out the MAC-Adress of a serverHi everybody
My application is running on a share on the server. On Starting the application I would like to check the mac-adress of the server, but the only information i have is the share path. How can I get the mac-adress of the server which is sharing the drive? Thanks alot Nijazi Halimaji try this
ManagementClass myManagementClass = new ManagementClass("Win32_NetworkAdapterConfiguration"); ManagementObjectCollection moc = myManagementClass.GetInstances(); foreach(ManagementObject mo in moc) { Console.WriteLine(mo["MacAddress"].ToString()); } Regards John Timney (MVP) Show quoteHide quote "Halimaji Nijazi" <t***@hotmail.com> wrote in message news:e5pyZ%23amGHA.4164@TK2MSFTNGP03.phx.gbl... > Hi everybody > > My application is running on a share on the server. > > On Starting the application I would like to check the mac-adress of the > server, but the only information i have is the share path. > > How can I get the mac-adress of the server which is sharing the drive? > > Thanks alot > > Nijazi Halimaji > >
Controling Event Sequencing...
dataset and where clause Dataset HasChanges function not true when Dataset is passed as variable button flash with red and white color Dates at Midnight How to detect datagrid row change DatagridView comboboxcolumn - assign cell value [Regular Expression] match a word with interpunctuation Getting saved values back to display after Update How to have .net code call pager or phone |
|||||||||||||||||||||||