WMI Command-line Tool
WMI Command-line Tool
The WMI Command-line (WMIC) tool provides a simple command-line interface to WMI. This allows you to use WMI to manage computers running Microsoft Windows. You can use WMIC from any computer running Windows XP Professional or an operating system in the Windows Server 2003 family to remotely manage any computer with WMI installed.
How Start WMIC in interactive mode
Start -> Run -> Type WMIC and click OK
Example:
Typing /? in the WMIC console will give you the same on-screen help you would get after typing:
wmic:root\cli> /?
wmic:root\cli> process /?
wmic:root\cli> /namespace:\\root\SMS\site_MSO
wmic:root\cli> PATH SMS_Collection
wmic:root\cli> PATH SMS_R_System.LastLogonUserName='PTHOMSEN'
wmic:root\cli> /namespace:\\root\cimv2
Example BIOS
WMIC BIOS
WMIC BIOS Get Manufacturer
WMIC BIOS Get Manufacturer,Name,Version /Format:csv
WMIC BIOS Get Manufacturer,Name,Version /Format:list
WMIC BIOS Get /Format:list
WMIC BIOS Get Manufacturer,Name,Version /Format:htable
How save this output to HTML file:
WMIC /Output:bios.html BIOS Get Manufacturer,Name,Version /Format:htable
START "" "%CD%.\bios.html"
Network adapter - WMI queries return too much information.
WMIC Path Win32_NetworkAdapter Get
WMI Code Creator v1.0
The WMI Code Creator tool allows you to generate VBScript, C#, and VB .NET code that uses WMI to complete a management task such as querying for management data, executing a method from a WMI class, or receiving event notifications using WMI.
https://www.microsoft.com/en-us/download/details.aspx?id=8572
How to retrieve data from MySQL to EXCEL
How to retrieve data from MySQL to EXCEL
Charge connector odbc
http://dev.mysql.com/downloads/connector/odbc/
Install ODBC in system
mysql-connector-odbc-5.2.4-winx64.msi
Go to the ODBC configuration in windows system
Conrol Panel -> Administrative Tools -> Data Sources (ODBC)
We start ODBC configuration
During configuration errors can occur - an error connecting to the server, check the database name or password or entered the correct port.
After the setup is complete, we can download the data to EXCEL
- We create a new Excel worksheet (Worksheet).
-
Select the top menu Data (Data), choose External Data (Import External Data) and choose from other sources ServerNew SQL Database Query.
-
Microsoft Query will start. First, you need to choose the data source, by selecting an existing Data Source Name.
-
Within the
Query Wizard, choose the columns to import. The list of tables available to the user configured through the DSN is shown on the left, the columns that will be added to your query are shown on the right. The columns you choose are equivalent to those in the first section of aSELECTquery. Click to continue. -
You can filter rows from the query (the equivalent of a
WHEREclause) using theFilter Datadialog. Click to continue. -
Select an (optional) sort order for the data. This is equivalent to using a
ORDER BYclause in your SQL query. You can select up to three fields for sorting the information returned by the query. Click to continue. -
Select the destination for your query. You can select to return the data Microsoft Excel, where you can choose a worksheet and cell where the data will be inserted; you can continue to view the query and results within Microsoft Query, where you can edit the SQL query and further filter and sort the information returned; or you can create an OLAP Cube from the query, which can then be used directly within Microsoft Excel. Click .
The same process can be used to import data into a Word document, where the data will be inserted as a table. This can be used for mail merge purposes (where the field data is read from a Word table), or where you want to include data and reports within a report or other document.
Linear Tape-Open raw data capacity
Linear Tape-Open (LTO-x) raw data capacity











