Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to ask Iir is a request of my boss to do it) can I connect through Lan to remote computer and get bios Info with the Windows WMI service? the computer might not have OS but it will be powered on. Can connect with managment scope? any Line of code?

What I have tried:

tutorial code from Internet this is interesting for my question code in c#

String path = @"\\{0}\ROOT\CIMV2";
String BiosVersion = String.Empty;

ConnectionOptions co = new ConnectionOptions();
ManagementScope scope =
new ManagementScope(String.Format(path, "."), co);

scope.Connect();

ObjectQuery query = new ObjectQuery("SELECT * FROM Win32_BIOS");
ManagementObjectSearcher search = new ManagementObjectSearcher(scope, query);

ManagementObjectCollection moc = search.Get();

foreach (ManagementObject mo in moc)
{
BiosVersion = (String)mo["SMBIOSBIOSVersion"];

}
Posted
Updated 1-Mar-16 4:22am
v2

1 solution

the computer has no OS and you want to connect with WINDOWS Management instrumentation?
If you/your Boss can change the requirement there will be a chance to read some(!) bios Information through WMI for powered-on Windows computers in the network (I hope it's a domain, what your example codes doesn't show is authtentication...) But don't think that because there is a ManagementObject definied it will be implemented for each pc... WMI oh my....
 
Share this answer
 
Comments
Member 3892343 1-Mar-16 10:42am    
I though so too I told him there must be a client/Server Connection with similar Software etc. but is there any other way rather than WMI? to Access bios Info.
Member 3892343 1-Mar-16 10:43am    
maybe call assembly from c# and bios interrupts?
johannesnestler 2-Mar-16 4:10am    
I can not think of any mechanism to do that...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900