diff --git a/reference/3.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md b/reference/3.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md index ffcfc802e4fe..1c62ad6d1a18 100644 --- a/reference/3.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md +++ b/reference/3.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md @@ -68,22 +68,18 @@ Description This command gets all approved verbs that begin with "un". ### Example 3 +```powershell +PS C:\> Get-Verb | Where-Object Group -EQ Security + +Verb Group +---- ----- +Block Security +Grant Security +Protect Security +Revoke Security +Unblock Security +Unprotect Security ``` -get-verb | where-object {$_.Group -eq "Security"} - -Verb Group ----- ----- -Block Security -Grant Security -Protect Security -Revoke Security -Unblock Security -Unprotect Security -``` - -Description - ------------ This command gets all approved verbs in the Security group. diff --git a/reference/4.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md b/reference/4.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md index ffcfc802e4fe..1c62ad6d1a18 100644 --- a/reference/4.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md +++ b/reference/4.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md @@ -68,22 +68,18 @@ Description This command gets all approved verbs that begin with "un". ### Example 3 +```powershell +PS C:\> Get-Verb | Where-Object Group -EQ Security + +Verb Group +---- ----- +Block Security +Grant Security +Protect Security +Revoke Security +Unblock Security +Unprotect Security ``` -get-verb | where-object {$_.Group -eq "Security"} - -Verb Group ----- ----- -Block Security -Grant Security -Protect Security -Revoke Security -Unblock Security -Unprotect Security -``` - -Description - ------------ This command gets all approved verbs in the Security group. diff --git a/reference/5.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md b/reference/5.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md index 9cbaba857207..09991dac08c4 100644 --- a/reference/5.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md +++ b/reference/5.0/Microsoft.PowerShell.Core/Functions/Get-Verb.md @@ -68,22 +68,18 @@ Description This command gets all approved verbs that begin with "un". ### Example 3 +```powershell +PS C:\> Get-Verb | Where-Object Group -EQ Security + +Verb Group +---- ----- +Block Security +Grant Security +Protect Security +Revoke Security +Unblock Security +Unprotect Security ``` -get-verb | where-object {$_.Group -eq "Security"} - -Verb Group ----- ----- -Block Security -Grant Security -Protect Security -Revoke Security -Unblock Security -Unprotect Security -``` - -Description - ------------ This command gets all approved verbs in the Security group. diff --git a/reference/5.1/Microsoft.PowerShell.Core/Functions/Get-Verb.md b/reference/5.1/Microsoft.PowerShell.Core/Functions/Get-Verb.md index 9cbaba857207..09991dac08c4 100644 --- a/reference/5.1/Microsoft.PowerShell.Core/Functions/Get-Verb.md +++ b/reference/5.1/Microsoft.PowerShell.Core/Functions/Get-Verb.md @@ -68,22 +68,18 @@ Description This command gets all approved verbs that begin with "un". ### Example 3 +```powershell +PS C:\> Get-Verb | Where-Object Group -EQ Security + +Verb Group +---- ----- +Block Security +Grant Security +Protect Security +Revoke Security +Unblock Security +Unprotect Security ``` -get-verb | where-object {$_.Group -eq "Security"} - -Verb Group ----- ----- -Block Security -Grant Security -Protect Security -Revoke Security -Unblock Security -Unprotect Security -``` - -Description - ------------ This command gets all approved verbs in the Security group. diff --git a/reference/6/Microsoft.PowerShell.Utility/Get-Verb.md b/reference/6/Microsoft.PowerShell.Utility/Get-Verb.md index 323eb2c0e1a6..a7cd0ccaba41 100644 --- a/reference/6/Microsoft.PowerShell.Utility/Get-Verb.md +++ b/reference/6/Microsoft.PowerShell.Utility/Get-Verb.md @@ -14,8 +14,8 @@ Gets approved Windows PowerShell verbs. ## SYNTAX -``` -Get-Verb [[-verb] ] +```powershell +Get-Verb [[-Verb] ] [[-Group] ] [] ``` ## DESCRIPTION @@ -64,23 +64,19 @@ Description This command gets all approved verbs that begin with "un". -### -------------------------- EXAMPLE 3 -------------------------- +### Example 3 +```powershell +PS C:\> Get-Verb -Group Security + +Verb AliasPrefix Group Description +---- ----------- ----- ----------- +Block bl Security Restricts access to a resource +Grant gr Security Allows access to a resource +Protect pt Security Safeguards a resource from attack or loss +Revoke rk Security Specifies an action that does not allow acc... +Unblock ul Security Removes restrictions to a resource +Unprotect up Security Removes safeguards from a resource that wer... ``` -get-verb | where-object {$_.Group -eq "Security"} - -Verb Group ----- ----- -Block Security -Grant Security -Protect Security -Revoke Security -Unblock Security -Unprotect Security -``` - -Description - ------------ This command gets all approved verbs in the Security group. @@ -138,6 +134,24 @@ Accept pipeline input: True (ByValue) Accept wildcard characters: True ``` +### -Group +Gets only the specified groups. +Enter the name of a group. +Wildcards are not permitted. + +```yaml +Type: String[] +Parameter Sets: (All) +Aliases: +Accepted values: Common, Communications, Data, Diagnostic, Lifecycle, Other, Security + +Required: False +Position: 1 +Default value: All groups +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + ## INPUTS ### None