📜  Powershell-高级Cmdlet

📅  最后修改于: 2020-11-19 07:58:07             🧑  作者: Mango


Cmdlet

cmdlet或“ Command let”是Windows PowerShell环境中使用的轻量级命令。 Windows PowerShell运行时在命令提示符处调用这些cmdlet。您可以通过Windows PowerShell API以编程方式创建和调用它们。以下是cmdlet的高级用法示例。

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.