473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Retrive Hardware configuration

How can i get the system configuration of Client's Machine Like
infoemation about Hard disk, RAM...

Nov 17 '05 #1
7 3762
you can use WMI and the System.Management namespace

http://msdn.microsoft.com/library/de...management.asp

http://msdn.microsoft.com/msdnmag/issues/02/05/WMIMan/

An article demostrating what you want:

http://www.codeproject.com/vbscript/VvvHardwareInfo.asp

HTH

Ollie Riches

"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
How can i get the system configuration of Client's Machine Like
infoemation about Hard disk, RAM...

Nov 17 '05 #2
Hi sonu,

Try the followin classes and links below to further research over this.

Driveinfo,Getdrives, Getdriveinfo,Drivetype etc..
(1) http://msdn2.microsoft.com/en-us/library/0fxtk2z5
(2) http://msdn2.microsoft.com/en-us/lib...us,vs.80).aspx

Hope this will atleast start your search :)

Maheshkumar.R
http://spaces.msn.com/members/cyberiafreak

"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
How can i get the system configuration of Client's Machine Like
infoemation about Hard disk, RAM...

Nov 17 '05 #3
Is there any method in System.Management for getting the information
about RAM,and CPU
¿ Mahesh Kumar wrote:
Hi sonu,

Try the followin classes and links below to further research over this.

Driveinfo,Getdrives, Getdriveinfo,Drivetype etc..
(1) http://msdn2.microsoft.com/en-us/library/0fxtk2z5
(2) http://msdn2.microsoft.com/en-us/lib...us,vs.80).aspx

Hope this will atleast start your search :)

Maheshkumar.R
http://spaces.msn.com/members/cyberiafreak

"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
How can i get the system configuration of Client's Machine Like
infoemation about Hard disk, RAM...


Nov 17 '05 #4
it is all in the demo at:

http://www.codeproject.com/vbscript/VvvHardwareInfo.asp

Ollie Riches

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Is there any method in System.Management for getting the information
about RAM,and CPU
¿ Mahesh Kumar wrote:
Hi sonu,

Try the followin classes and links below to further research over this.

Driveinfo,Getdrives, Getdriveinfo,Drivetype etc..
(1) http://msdn2.microsoft.com/en-us/library/0fxtk2z5
(2) http://msdn2.microsoft.com/en-us/lib...us,vs.80).aspx

Hope this will atleast start your search :)

Maheshkumar.R
http://spaces.msn.com/members/cyberiafreak

"sonu" <kr*******@yahoo.com> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
How can i get the system configuration of Client's Machine Like
infoemation about Hard disk, RAM...

Nov 17 '05 #5
Ollie,
Thanks for information but i am using code like this..
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_Processor");
ManagementObjectSearcher searcher =
new
ManagementObjectSearcher(objectQuery);
foreach (ManagementObject share in
searcher.Get())
{
Response.Write("Share = " +
share["Name"]);
}

Above code is return the information about CPU by using the sql
select * from Win32_Processor

How to find RAM or full hardware information i dont know..

Please Help me

Nov 17 '05 #6
i got the properties need out of the script :)

static void Main(string[] args)
{
double totalCapacity = 0;
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_PhysicalMemory");
ManagementObjectSearcher searcher = new
ManagementObjectSearcher(objectQuery);
ManagementObjectCollection vals = searcher.Get();
foreach(ManagementObject val in vals)
{
totalCapacity += System.Convert.ToDouble(val.GetPropertyValue("Capa city"));
}
Console.WriteLine("Total Machine Memory = " + totalCapacity.ToString() + "
Bytes");
Console.WriteLine("Total Machine Memory = " + (totalCapacity / 1024) + "
KiloBytes");
Console.WriteLine("Total Machine Memory = " + (totalCapacity / 1048576) + "
MegaBytes");
Console.WriteLine("Total Machine Memory = " + (totalCapacity / 1073741824 )
+ " GigaBytes");
Console.ReadLine();
}

HTH

Ollie Riches

"sonu" <kr*******@yahoo.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Ollie,
Thanks for information but i am using code like this..
ObjectQuery objectQuery = new ObjectQuery("select * from
Win32_Processor");
ManagementObjectSearcher searcher =
new
ManagementObjectSearcher(objectQuery);
foreach (ManagementObject share in
searcher.Get())
{
Response.Write("Share = " +
share["Name"]);
}

Above code is return the information about CPU by using the sql
select * from Win32_Processor

How to find RAM or full hardware information i dont know..

Please Help me

Nov 17 '05 #7
Thanks Ollie

Its working fine, thank you very much

Nov 17 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Peter | last post by:
If I want to build a web services application (not web application), what is the hardware requirement ? Does anyone have the experience?
9
by: kbd | last post by:
Hello: I know that hardware requirements are dependent upon many factors. However I need a sanity check on this configuration. First the purpose of the database. - database will be used to...
2
by: Parv | last post by:
Hi all I am having a SQL Server database of arround 110GB and 250 Users. What is best suited hardware requirements for handling of such a database. I am having following requirements from the...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
3
by: =?Utf-8?B?UGV0ZXIgSiwgU2Nhbmlh?= | last post by:
Hello I'm looking for an solution about how to retrive data from an client side located Excel document by using an ASP.Net application. I don't want to upload the file to the server. I just want...
0
by: edu1982edu | last post by:
MSDN on GetCurrentHwProfile: Remarks The GetCurrentHwProfile function retrieves the display name and globally unique identifier (GUID) string for the hardware profile. The function also retrieves...
1
by: ganesh22 | last post by:
Hi, Here the below code is for dynamically creating textboxs, its creating fine but after user enters some values in textboxs how can i retrive that values? using System; using System.Data;...
6
by: Steve Mowbray | last post by:
Hi I am using SerialPort component to send raw binary files to a remote device with RTS/CTS handshaking - the remote device has a small receive buffer and is slow so needs to be hardware flow...
8
by: Sid B | last post by:
(apologies for the cross-post) Hi, I am new to my company and have been asked to recommend a new redundancy / backup plan for our online server. I've talked to the other folks in the company...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.