Skip to content

Instantly share code, notes, and snippets.

@rossarioking
Created March 7, 2020 18:01
Show Gist options
  • Save rossarioking/d823d7827f023a41941c3449c59dc352 to your computer and use it in GitHub Desktop.
Save rossarioking/d823d7827f023a41941c3449c59dc352 to your computer and use it in GitHub Desktop.
Working with PowerShell Get-Commands #PowerShell
#Gets List of Commands Containing "DNS"
Get-Command -Verb Get -Noun *DNS*
CommandType Name Version Source
----------- ---- ------- ------
Alias Get-DnsServerRRL 2.0.0.0 DnsServer
Function Get-DAClientDnsConfiguration 3.0.0.0 RemoteAccess
Function Get-DhcpServerDnsCredential 2.0.0.0 DhcpServer
Function Get-DhcpServerv4DnsSetting 2.0.0.0 DhcpServer
#Gets List of Function Commands Containing "Fire"
Get-Command -Name *Fire* -CommandType Function
CommandType Name Version Source
----------- ---- ------- ------
Function Copy-NetFirewallRule 2.0.0.0 NetSecurity
Function Disable-NetFirewallRule 2.0.0.0 NetSecurity
Function Enable-NetFirewallRule 2.0.0.0 NetSecurity
Get-Command -name *IPSec*
CommandType Name Version Source
----------- ---- ------- ------
Alias Get-VpnServerIPsecConfiguration 3.0.0.0 RemoteAccess
Alias Set-VpnServerIPsecConfiguration 3.0.0.0 RemoteAccess
Function Copy-NetIPsecMainModeCryptoSet 2.0.0.0 NetSecurity
Function Copy-NetIPsecMainModeRule 2.0.0.0 NetSecurity
#Returns list of Commands containing "IP" for NetTCPIP Module Only.
Get-Command -Name *IP* -Module NetTCPIP*
CommandType Name Version Source
----------- ---- ------- ------
Alias gip -> 1.0.0.0 NetTCPIP
Function Get-NetIPAddress 1.0.0.0 NetTCPIP
Function Get-NetIPConfiguration 1.0.0.0 NetTCPIP
Function Get-NetIPInterface 1.0.0.0 NetTCPIP
Function Get-NetIPv4Protocol 1.0.0.0 NetTCPIP
Function Get-NetIPv6Protocol 1.0.0.0 NetTCPIP
Function New-NetIPAddress 1.0.0.0 NetTCPIP
Function Remove-NetIPAddress 1.0.0.0 NetTCPIP
Function Set-NetIPAddress 1.0.0.0 NetTCPIP
Function Set-NetIPInterface 1.0.0.0 NetTCPIP
Function Set-NetIPv4Protocol 1.0.0.0 NetTCPIP
Function Set-NetIPv6Protocol 1.0.0.0 NetTCPIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment