Get BIOS Date
-
HI Experts, I want to get the BIOS date in my project.Inspite of change in the date from the "Date and Time Properties" the date that i want is the date in the BIOS.
-
HI Experts, I want to get the BIOS date in my project.Inspite of change in the date from the "Date and Time Properties" the date that i want is the date in the BIOS.
Hi Try this <pre> RegistryKey RK = Registry.LocalMachine; RK = RK.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\"); Object Date = RK.GetValue("SystemBiosDate"); string ss = Date.ToString(); </pre>
himanshu
-
HI Experts, I want to get the BIOS date in my project.Inspite of change in the date from the "Date and Time Properties" the date that i want is the date in the BIOS.
You can quety WMI with System.Management Namespace Here is an example. ReleaseDate property is what you are looking for
private void Form1\_Load(object sender, EventArgs e) { List("Select \* from Win32\_BIOS"); } private void List(string query) { ManagementObjectSearcher m = new ManagementObjectSearcher(); m.Query = new ObjectQuery(query); foreach (ManagementObject mo in m.Get()) { foreach (PropertyData pd in mo.Properties) { if (mo\[pd.Name\] != null) { if (mo\[pd.Name\] is string\[\]) { foreach (string s in (string\[\])mo\[pd.Name\]) { MessageBox.Show(s); } } else { MessageBox.Show(pd.Name + ":" + mo\[pd.Name\].ToString()); } } } } }
-
You can quety WMI with System.Management Namespace Here is an example. ReleaseDate property is what you are looking for
private void Form1\_Load(object sender, EventArgs e) { List("Select \* from Win32\_BIOS"); } private void List(string query) { ManagementObjectSearcher m = new ManagementObjectSearcher(); m.Query = new ObjectQuery(query); foreach (ManagementObject mo in m.Get()) { foreach (PropertyData pd in mo.Properties) { if (mo\[pd.Name\] != null) { if (mo\[pd.Name\] is string\[\]) { foreach (string s in (string\[\])mo\[pd.Name\]) { MessageBox.Show(s); } } else { MessageBox.Show(pd.Name + ":" + mo\[pd.Name\].ToString()); } } } } }
i could not find the system.management namespace please help......
-
i could not find the system.management namespace please help......
-
Have you tried adding reference to a .net library and search that list for System.Management. System.Management dll is in .net since 1.1 version.
Thanks.....
-
Hi Try this <pre> RegistryKey RK = Registry.LocalMachine; RK = RK.OpenSubKey("HARDWARE\\DESCRIPTION\\System\\"); Object Date = RK.GetValue("SystemBiosDate"); string ss = Date.ToString(); </pre>
himanshu