wql

What format is this time value in?

ぐ巨炮叔叔 提交于 2019-11-28 10:00:59
I have a WMI query that specifies time in this format '20090219000000.000000+480' Can someone tell me what format this is, and does .NET have any built-in functionality to work with it? EDIT This time value is from a sample query that I found. I don't know what time value was used to generate it. I just need to be able to convert a time value to this format. EDIT 2 I found out this time is in CIM_DATETIME format. This looks like a standard date time string without any separators: '20090219000000.000000+480' 'yyyyMMddhhmmss.ffffff+480' yyyy - The year in four digits. MM - The numeric month.

How to join in a WMI Query (WQL)

你。 提交于 2019-11-28 07:16:02
问题 I want to get the serial number of the boot-harddisk via a WQL query. The boot-partition can be retrieved using the following query: SELECT * FROM Win32_DiskPartition where BootPartition=True The serial number is in Win32_DiskDrive: SELECT DeviceID, SerialNumber FROM Win32_DiskDrive Win32_DiskDriveToDiskPartition has the mapping of Win32_DiskDrive to Win32_DiskPartition . They are mapped Win32_DiskDrive.DeviceID to Win32_DiskPartition.DeviceID in Win32_DiskDriveToDiskPartition How can I build

How to get total physical memory (ram) information in GB by WMI query?

主宰稳场 提交于 2019-11-28 06:14:29
问题 I know how to get total physical memory from win32_computersystem class. but that comes in bytes or kb. I want this information in MB or GB. in wmi (wql) query. wmic also work. thanks in advance. 回答1: You must convert the value of the property manually. Also is better use Win32_PhysicalMemory WMI class. Try this sample using System; using System.Collections.Generic; using System.Management; using System.Text; namespace GetWMI_Info { class Program { static void Main(string[] args) { try {

What format is this time value in?

柔情痞子 提交于 2019-11-27 03:23:44
问题 I have a WMI query that specifies time in this format '20090219000000.000000+480' Can someone tell me what format this is, and does .NET have any built-in functionality to work with it? EDIT This time value is from a sample query that I found. I don't know what time value was used to generate it. I just need to be able to convert a time value to this format. EDIT 2 I found out this time is in CIM_DATETIME format. 回答1: This looks like a standard date time string without any separators: