PowerShell v3 Get a Numbered List of Cmdlets

Nothing special. Just a quick way to get a list of cmdlets available to a shell. Great for reference when you want a controlled, order list of something;
$a=1;
Get-Command-CommandType cmdlet|
ForEach-Object{"$($a): $($_.name)"; $a++
will output this:
1:Add-BitsFile
2:Add-Computer
3:Add-Content
4:Add-History
5:Add-JobTrigger
6:Add-Member
7:Add-PSSnapin
8:Add-RoleMember
9:Add-SqlAvailabilityDatabase
10:Add-SqlAvailabilityGroupListenerStaticIp
11:Add-Type
12:Backup-ASDatabase
13:Backup-SqlDatabase
14:Checkpoint-Computer
15:Clear-Content
16:Clear-EventLog
17:Clear-History
18:Clear-Item
19:Clear-ItemProperty
20:Clear-Variable
21:Compare-Object
22:Complete-BitsTransfer
23:Complete-Transaction
24:Connect-PSSession
25:Connect-WSMan
26:ConvertFrom-Csv
27:ConvertFrom-Json
28:ConvertFrom-SecureString
29:ConvertFrom-StringData
30:Convert-Path
31:ConvertTo-Csv
32:ConvertTo-Html
33:ConvertTo-Json
34:ConvertTo-SecureString
35:ConvertTo-Xml
36:Convert-UrnToPath
37:Copy-Item
38:Copy-ItemProperty
39:Debug-Process
40:Decode-SqlName
41:Disable-ComputerRestore
42:Disable-JobTrigger
43:Disable-PSBreakpoint
44:Disable-PSRemoting
45:Disable-PSSessionConfiguration
46:Disable-ScheduledJob
47:Disable-SqlAlwaysOn
48:Disable-WSManCredSSP
49:Disconnect-PSSession
50:Disconnect-WSMan
51:Enable-ComputerRestore
52:Enable-JobTrigger
53:Enable-PSBreakpoint
54:Enable-PSRemoting
55:Enable-PSSessionConfiguration
56:Enable-ScheduledJob
57:Enable-SqlAlwaysOn
58:Enable-WSManCredSSP
59:Encode-SqlName
60:Enter-PSSession
61:Exit-PSSession
62:Export-Alias
63:Export-Clixml
64:Export-Console
65:Export-Counter
66:Export-Csv
67:Export-FormatData
68:

Related Posts by Categories

0 comments:

Post a Comment