Tag: WMI
-
WMI Tasks using Delphi – Files and Folders
Read the article: WMI Tasks using Delphi – Files and FoldersHow do I rename a local or remote file? Use the CIM_DataFile class. Ensure that you pass the entire path name when calling the Rename method, for example, “C:\Foo\Test.txt” instead…
-
WMI Tasks using Delphi – Event Logs
Read the article: WMI Tasks using Delphi – Event LogsHow do I retrieve information about the Security event log? Use the Win32_NTEventlogFile class. [sourcecode language=”delphi” wraplines=”false”] const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant; FWbemObjectSet: OLEVariant;…
-
WMI Tasks using Delphi – Disks and File Systems
Read the article: WMI Tasks using Delphi – Disks and File SystemsHow do I find out how much disk space each user is currently using on a computer? If you are using disk quotas, then use the Win32_DiskQuota class and retrieve…
-
WMI Tasks using Delphi – Desktop Management
Read the article: WMI Tasks using Delphi – Desktop ManagementHow do I determine if a remote computer has booted up in the Safe Mode with Networking state? Use the Win32_ComputerSystem class and check the value of the BootupState property.…
-
WMI Tasks using Delphi – Dates and Times
Read the article: WMI Tasks using Delphi – Dates and TimesHow do I convert WMI dates to standard dates and times? Use the SWbemDateTime object to convert these to regular dates and times. [sourcecode language=”delphi” wraplines=”false”] const wbemFlagForwardOnly = $00000020;…
-
WMI Tasks using Delphi – Computer Software
Read the article: WMI Tasks using Delphi – Computer SoftwareHow do I uninstall software? If the software was installed using Microsoft Windows Installer (MSI), use the WMI class Win32_Product and the Uninstall method. [sourcecode wraplines=”false” language=”delphi”] const wbemFlagForwardOnly =…
-
WMI Tasks using Delphi – Computer Hardware
Read the article: WMI Tasks using Delphi – Computer HardwareDetermine how much free memory a computer has Use the class Win32_OperatingSystem and the FreePhysicalMemory property. [sourcecode wraplines=”false” language=”delphi”] const wbemFlagForwardOnly = $00000020; var FSWbemLocator : OLEVariant; FWMIService : OLEVariant;…
-
WMI Tasks using Delphi – Accounts and Domains
Read the article: WMI Tasks using Delphi – Accounts and DomainsDetermine the domain in which a computer belongs? Use the Win32_ComputerSystem class and check the value of the Domain property. You can also use the DNSDomain property in Win32_NetworkAdapterConfiguration. [sourcecode…
-
All about WiFi Networks and WiFi Adapters using the WMI and Delphi
Read the article: All about WiFi Networks and WiFi Adapters using the WMI and DelphiSome time ago I wrote an article about how list the Wifi networks using Delphi and the Native Wifi API, today I will show you how can you can gain …
-
Reading the SMBios Tables using Delphi
Read the article: Reading the SMBios Tables using DelphiUPDATE : If you want access the SMBIOS using Delphi or Free Pascal try the TSMBIOS project. The system management BIOS (SMBIOS) is a specification of how the…
