In this blog I will be sharing few command lines which can be executed on Windows Server / workstations to launch several utilities in an easy and efficient way.

Check System Model using WMI Query

Open Command prompt and run:

Wmic csproduct get name

We can look for other columns as well by running:

Wmic csproduct

Lets format in a neat and clean way for better view:

Wmic csproduct get /format:list
ImpCL 01

Check UUID using WMI Query

 Select * from Win32_ComputerSystemproduct

Check list of Updates installed

wmic qfe
or
wmic qfe >> hotfix.txt (to generate text file)

Get Bios Info using WMI Query

Wmic bios get /format:list

Open Configuration manager Properties

Control smscfgrc

Shortcut to open Software Center

Launch scclient.exe which is located under c:\windows\ccm.

Or

C:\windows\ccm\scclient.exe

Launch SCCM console with different user

“runas.exe /env /user:domain\admin “C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\Microsoft.ConfigurationManagement.exe” “”

Similar example for launch command prompt

Runas /user:domain\username cmd

Shortcut to open System Properties

Control system
ImpCL 01a

(This command is equivalent to: right click “This PC” and selecting properties)

This command few of the most important info such as  Computername,RAM, “Windows Activation” status

Shortcut to Launch Network connections

Ncpa.cpl

Check Windows version

Winver
ImpCL 02

Launch System Information

Msinfo32
ImpCL 03

This will launch all system information including Hardware resources, Components, Software Environment. You can look for OS Info, RAM, System info etc.

Check Active Directory site of a system

Nltest /dsgetsite

Shortcut to Launch: Remote Asistance Assistance

Msra

Launch cmd prompt in elevated mode

"powershell start-process cmd -verb runas"

Generate Battery Health Report

Powercfg /batteryreport

(Generates battery-report.html)

ImpCL 04
ImpCL 04b

This report will show installed batteries, Battery Usage, Usage History, Battery capacity History and Battery life estimates

Traceroute the System/Server’s FQDN or any web url

Tracert servername

(This is inbuilt network tool on windows OS which shows path, time and hops it took to reach the destination)

Generate Group Policy Results

Gpresult /scope computer /h c:\temp\gpresult.html

This will generate the group policy result for computer account in html format