Skip to content

Instantly share code, notes, and snippets.

@micmaher
Created March 28, 2016 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micmaher/66bcc7bcd510fb5dbc32 to your computer and use it in GitHub Desktop.
Save micmaher/66bcc7bcd510fb5dbc32 to your computer and use it in GitHub Desktop.
# M.Maher
# 3/3/16
# Check out all 'Get-' network cmdlets
$commands = Get-Command *net* |
where {$_.commandtype -eq 'Function' -or $_.commandtype -eq 'Cmdlet' -and $_.Name -like "Get-*" }|
select name
foreach ($c in $commands){
$c.Name
&$c.Name -erroraction Silentlycontinue
Start-Sleep 3
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment