Skip to content

Add-ProgramRule

SYNOPSIS

Adds program rules via pipe

SYNTAX

Add-ProgramRule [-paths] <Object> [[-type] <String>] [[-count] <Object>] [<CommonParameters>]

DESCRIPTION

Runs through the list of paths and makes the rules Mainly meant for internal use to avoid repeated code

EXAMPLES

EXAMPLE 1

$paths | Add-ProgramRule

PARAMETERS

-paths

The list of paths generated during Block/Unblock-Program

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-type

Block or Unblock, used to determin rule name and rule action

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-count

{{ Fill count Description }}

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Add-ProgramRule

Block-Program

Unblock-Program

Remove-ProgramRule

Get-ProgramRulename

New-NetfirewallRule