Do you need to access management information in an enterprise environment from your Delphi Application? Don’t know where to start with? Don’t worry. MiTec’s System Information Management Suite’s component helps you access systems, applications, networks, devices, and other managed components with less code, and we will learn how to use MiTeC_WbemScripting_TLB in this blog post. For more info on Windows Management Instrumentation (WMI) check here
Platforms: Windows.
Installation Steps:
You can easily install this Component Suite from GetIt Package Manager. The steps are as follows.
- Navigate In RAD Studio IDE->Tools->GetIt Package Manager->select Components in Categories->Components->Trail -MiTec system Information Component Suite 14.3 and click Install Button.
- Read the license and Click Agree All. An Information dialog saying ‘Requires a restart of RAD studio at the end of the process. Do you want to proceed? click yes and continue.
- It will download the plugin and installs it. Once installed Click Restart now.
How to run the Demo app:
- Navigate to the System Information Management Suite trails setup, Demos folder which is installed during Get It installation e.g) C:UsersDocumentsEmbarcaderoStudio21.0CatalogRepositoryMiTeC-14.3DemosDelphi7
- Open the WMIDemo project in RAD studio 10.4.1 compile and Run the application.
- This Demo App shows how to use MiTeC_WbemScripting_TLB’s ISWbemServices and list the Computer, Operating system, Processor, Memory, Storage etc.
Components used in MSIC WMIDemo App:
- 3 TEdit‘s to provide machine name, username, password in a enterprise network which helps to connect and access the management information.
- TTreeView to show the Computer, Operating system, Processor, Memory, Storage etc. in a tree view.
- TButton to refresh and close.
Implementation Details:
- Connect to the Machine from the provided machine, username and password details using WMIConnect. An interface variable of type ISWbemServices’s reference is acquired during this connect operation.
- A WMICommand call helps to retrieve the system information such as operating system, processor, etc. as shown below.
Developers can use this MiTeC Component suite and able to obtain management data to automate administrative tasks on remote computers quickly.
With the use of a Windows IDE, Windows management instrumentation is made easy in your Delphi apps using a component suite. Try your Free Trial here.