Skip to content

safwa1/HardwareInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

HardwareInfo Console Application

HardwareInfo Utils

This utility class provides methods to retrieve hardware information using wmic commands.

Usage

// Example usage to get baseboard information
var baseBoardInfo = HardwareUtil.GetBaseBoardPropertyValue(BaseBoard.SerialNumber);
Console.WriteLine($"Baseboard Serial Number: {baseBoardInfo}");

image

Methods

GetBaseBoardPropertyValue(BaseBoard baseBoard)

Returns the value of the specified baseboard property.

GetCpuPropertyValue(Cpu cpu)

Returns the value of the specified CPU property.

GetDiskdrivePropertyValue(Diskdrive diskDrive, int index = 0)

Returns the value of the specified disk drive property for the given index.

GetBiosPropertyValue(Bios bios)

Returns the value of the specified BIOS property.

GetOsPropertyValue(Os os)

Returns the value of the specified OS property.

GetMemoryPropertyValue(MemoryChip memoryChip)

Returns the value of the specified memory chip property.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages