Created
March 28, 2016 19:13
-
-
Save micmaher/66bcc7bcd510fb5dbc32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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