Powershell - Advanced Cmdlets


Advertisements

Cmdlets

A cmdlet or "Command let" is a lightweight command used in the Windows PowerShell environment. The Windows PowerShell runtime invokes these cmdlets at command prompt. You can create and invoke them programmatically through Windows PowerShell APIs. Following are advanced usage example of cmdlets.

Sr.No. Cmdlet Type & Description
1 Get-Unique Cmdlet

Example program to showcase Get-Unique Cmdlet.

2

Group-Object Cmdlet

Example program to showcase Group-Object Cmdlet.

3 Measure-Object Cmdlet

Example program to showcase Measure-Object Cmdlet.

4 Compare-Object Cmdlet

Example program to showcase Compare-Object Cmdlet.

5 Format-List Cmdlet

Example program to showcase Format-List Cmdlet.

6 Format-Wide Cmdlet

Example program to showcase Format-Wide Cmdlet.

7 Where-Object Cmdlet

Example program to showcase Where-Object Cmdlet.

8 Get-ChildItem Cmdlet

Example program to showcase Get-ChildItem Cmdlet.

9 ForEach-Object Cmdlet

Example program to showcase ForEach-Object Cmdlet.

10 Start-Sleep Cmdlet

Example program to showcase Start-Sleep Cmdlet.

11 Read-Host Cmdlet

Example program to showcase Read-Host Cmdlet.

12 Select-Object Cmdlet

Example program to showcase Select-Object Cmdlet.

13 Sort-Object Cmdlet

Example program to showcase Sort-Object Cmdlet.

14 Write-Warning Cmdlet

Example program to showcase Write-Warning Cmdlet.

15 Write-Host Cmdlet

Example program to showcase Write-Host Cmdlet.

16 Invoke-Item Cmdlet

Example program to showcase Invoke-Item Cmdlet.

17 Invoke-Expression Cmdlet

Example program to showcase Invoke-Expression Cmdlet.

18 Measure-Command Cmdlet

Example program to showcase Measure-Command Cmdlet.

19 Invoke-History Cmdlet

Example program to showcase Invoke-History Cmdlet.

20 Add-History Cmdlet

Example program to showcase Add-History Cmdlet.

21 Get-History Cmdlet

Example program to showcase Get-History Cmdlet.

22 Get-Culture Cmdlet

Example program to showcase Get-Culture Cmdlet.

Advertisements