Skip to main content


Showing posts with the label WMIC

WMIC command get CPU Load Percentage

Getting CPU load percentage is quite helpful in determining whether the server or computer is on a heavy performance, this would also indicate whether there is a need to increase the memory or add another CPU to the machine.

Of course, when the CPU has a lot of load, performance will be impacted directly. Which basically means that the machine will not be working perfectly.
Checking the CPU load will also help to troubleshoot, if the services on the machine or server is experiencing slow performance.
Here’s the wmic command line which check the CPU Load Percentage.
wmic cpu list status

Sample output: AvailabilityCpuStatusCurrentVoltageDeviceIDErrorCleared 319CPU0
ErrorDescriptionLastErrorCodeLoadPercentageStatusStatusInfo 15OK3

The command can be used to monitor remote servers or computers to check the load percentage and just save the output to a text file for review or monitoring purposes.

Cheers..Till next time. Hope it helps. 😊

================================ Free Android Apps:

How to insert landscape orientation in Word?

How to insert a different section or page in a Word document?

How to mix portrait and landscape in a Word office 365?

If you are writing a thesis, a report or an article that you need to insert a landscape layout in a specific page in Word document but your orientation all long is portrait and changing the orientation causes the whole layout to change.
Inserting landscape in a specific page in a word document can be done by inserting section breaks. Let’s just make a basic example.
Let’s say you have 3 page document and you want that first page in Portrait mode, second page in landscape and third page in portrait layout also.
First, click on “home” tab, click the “show/hide paragraph marks” option or see the icon below. Enabling this option the section breaks, spaces and tabs will be visible. But what we are interested is to see the “section breaks”.

In the first page position the cursor on the last area at the bottom of the page.
In Word 2010, click on “page layout” in the ribbon ta…

Copy a single file using robocopy

Copy a single file using robocopy from a local folder to a shared folder on the network.
A simple rule of thumb before any disaster strike, don't interchange the source and the destination.

If source and destination is mistakenly reverse, files might get overwritten. To avoid any loss of data do a test with a dummy file to ensure things work perfectly.
Robocopy [source][destination]   [file to be copied]
robocopy c:\local_c_folder  \\PC_network\shared_folder   file_to_be_copied_xx.txt
The command will be completed successfully provided the network access right has no issues.

Robocopy works quite good on large files. A simple copy or xcopy command will also work but the speed might vary.

However, if the file (ex. an ISO file) and is more than 4GB and the filesystem  of the thumbdrive or the storage is FAT system, then robocopy or any methods of copying will not work. Since FAT has a file size limitation of less than 3GB.

Robocopy is free it can be accessed from command line. No ne…

PowerShell list printers of remote computers

How to print installed printers on remote computers?

With and PowerShell WMIC it can be don easily.

PowerShell command to list installed printers of a remote PC.

Invoke-command -ComputerName PC0100 -ScriptBlock { wmic printer get name}

Command above needs appropriate privileges to execute successfully and remote computers should be configured to accept remote WMIcommands.

Sample output:

WMIC Get IP Address

How to get IP Address via command line using WMIC?

Get IP Address of   remote computer.

Get IP Address using WMIC.

wmic nicconfig get IPAddress,ServiceName

Sample output:
IPAddress                                       ServiceName
{"", "fe80::26d0:eff6:cc27:e1"}    VBoxNetAdp
{"", "fe80::8798:acfe:6ee9:8b7c"}    athr

Command line query service status

How to query windows service status using command line?
Sc.exe a command line tool for Windows operating system that every Windows admin should know. The Sys Admin is able to query, list, start or stop Windows services using this tool.

Sc.exe command line tool will help to query service status on local computer, remote computers or servers.
Example below shows the command line to query or list the services state that are running.
Query running services:
sc query | findstr /c:" RUNNING"  /c:"SERVICE_NAME"
Sample output:
        STATE              : 4  RUNNING SERVICE_NAME: AntiVirSchedulerService
        STATE              : 4  RUNNING SERVICE_NAME: AntiVirService
        STATE              : 4  RUNNING SERVICE_NAME: AppHostSvc
        STATE              : 4  RUNNING SERVICE_NAME: Appinfo
        STATE              : 4  RUNNING SERVICE_NAME: AudioEndpointBuilder
        STATE              : 4  RUNNING SERVICE_NAME: Audiosrv

Enable ICMP or Ping request on Windows

If you ping a remote computer but fails, it could be that the firewall does not allow ICMP protocol.

Enabling ICMP or ping requests is quite useful for troubleshooting purposes but it could be also a security issue.
To enable ping or ICMP in Windows Firewall with Advance security, can be done via command line or using the graphical interface.
Command line is quite useful if the setting has to be done repeatedly or it has to be done on multiple machines.
Command line will also be helpful if a setting has to be enabled or disabled at times. Graphical interface is of course the easiest method if it has to be done one time but if the setting has to be done a couple of times then command line or scripting is definitely a good choice unless the person loves to click and click.
Enable Ping response using command line: netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" protocol=icmpv4:8,any dir=in action=allow
Disable Ping response using command line: net…

Lepide Active Directory Cleaner, a boon to enhance IT Security

Inactive user and computer accounts are considered as threats for IT security of an organization. These obsolete AD accounts can be easily used by hackers or uninvited users to access the organization’s network. Once their access is auto-authorized through the backdoor of an inactive user account, the hacker can steal the precious data stored on the server and/or will have the ability to crash down the Windows Server resulting in downtimes or permanent operation failure.

To be on the safe side, it is advised to track and disable or remove the inactive user and computer accounts. However, the Administrator will face a big challenge to do so in a large organization having thousands of users. It will be quite complicated to find out which user or computer account is inactive in a pool of thousand users.

If you are looking for a perfect solution, then Lepide Active Directory Cleaner is here with its tremendous feature set. It automatically scans the Active Directory to find out the user …