Fri, Oct 13, 2017 10:59 pm

If you want to determine how long a Microsoft system has been running since
it was last rebooted from a command-line interface (CLI), you can do so using
PowerShell. You can do so by subtracting the last boot time from the current
date and time. The Get-Date cmdlet shows the current date and time
and (Get-CimInstance Win32_OperatingSystem).LastBootUpTime shows
the last time the system was booted.

Tue, Oct 10, 2017 11:31 pm

If you are accustomed to using the wget or cURL utilities on
Linux or
Mac OS X
to download webpages from a
command-line interface (CLI), there is a
Gnu
utility,
Wget for Windows
, that you can download and use on systems running Microsoft
Windows. Alternatively, you can use the Invoke-WebRequest
cmdlet from a PowerShell prompt, if you have version 3.0 or greater of
PowerShell on the system. You can determine the version of PowerShell on
a system by opening a PowerShell window and typing $psversiontable.
E.g., in the example below from a Windows 10 system, the version of PowerShell
is 5.1.15063.674.

If you have version 3.0 or later, you can use wget or
curl as an alias for the Invoke-WebRequest cmdlet,
at least up through version 5.x. E.g., if I want to download the home
page for the website example.com to a file named index.html, I could use
the command wget -OutFile index.html http://example.com
at a PowerShell prompt. Or I could use either of the following commands,
instead:

If you can't see all of the information, i.e., if you see three
dots indicating that not all of the information is displayed, you can
append | format-list to the command to have the output displayed
in list format.

Mon, Sep 04, 2017 10:42 pm

If you need to know information about the manufacturer and model number of
a monitor on a Microsoft Windows system, you may be able to obtain it from
a PowerShell
prompt using the Get-WmiObject cmdlet as shown
below:

Fri, Sep 01, 2017 11:06 pm

If you want to know what options you have for printing files on a Microsoft
Windows system, e.g., perhaps you want a list of currently avaialble printers
or even want to know the IP addresses by which some printers are accessible,
the
PowerShell Get-Printer cmdlet may provide the information you are seeking.
E.g.:

Thu, Aug 17, 2017 11:09 pm

You can obtain information on the
motherboard in a
computer running Microsoft Windows using
PowerShell by means of
the Get-Ciminstance cmdlet with the command
Get-Ciminstance Win32_Baseboard. E.g., the following example is
from a Microsoft Windows 10 system.

The manufacturer, model number, serial number,
SKU, and
product number will be displayed if that information can be queried from
the motherboard. Note: not all parameters will be available for every
motherboard as shown above. For another system, the serial number is
available.

Thu, Aug 10, 2017 9:26 pm

You can use the Get-CimInstance cmdlet at a
PowerShell prompt
to obtain information on processes running on a Microsoft Windows system.
E.g., to see a list of all the processes currently running on a system, the
command gcim win32_process can be used; gcim is an
alias for Get-CimInstance, so you can use the shorter alias or
Get-CimInstance. The name of the process, its
process identifier
(PID),
handle count, working
set size, and
virtual memory size are displayed.