PowerShell tips – part 027.

Windows PowerShell Integrated Scripting Environment (ISE) is a graphical host application that enables you to read, write, run, debug, and test scripts and modules in a graphic-assisted environment., see the official webpage.

You can start on the command shell with this command:

You can run PowerShell commands in this environment, let’s see the version of PowerShell:

You can use this command to show how many different cmdlets are available, in this case, the number is 1624:

The Get-Service shows services from your operating system.
The Get-Member cmdlet looks at all the objects in its input and provides output for each distinct class.
In this case, I use Get-Service, and the result is piped to Get-Member:

PowerShell has provided the count of items in each set, the value of the property Handles, and shows the first 7 with Select-Object –First.

Script files with a .ps1 extension are called scripts.
Module files with a .psm1 extension are called script modules.
PowerShell modules were introduced in Version 2.0 and are simply PowerShell’s term for a self-contained library or
package. The operating system is delivered with a number of built-in modules. To see them, you need to use this cmdlet:

You can use –ListAvailable to switch to the list of all the modules that PowerShell can find.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.