From 1b6836def08f8dc2854ebb1675ae2b910ff20d29 Mon Sep 17 00:00:00 2001 From: Thumbscrew Date: Sat, 9 Nov 2019 14:38:30 +0000 Subject: [PATCH] Fixed 'auto' parameter set. --- public/Get-PSFirewallLog.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/Get-PSFirewallLog.ps1 b/public/Get-PSFirewallLog.ps1 index a3f4d9b..5c13189 100644 --- a/public/Get-PSFirewallLog.ps1 +++ b/public/Get-PSFirewallLog.ps1 @@ -16,9 +16,9 @@ function Get-PSFirewallLog { [string] $LogFileName, - # Retrieve a profile's log using registry settings of the local machine + # Retrieve a profile's log using registry settings of the local or remote machine [Parameter(Mandatory = $true, ParameterSetName = 'auto')] - [Parameter(ParameterSetName = 'remote')] + [Parameter(Mandatory = $true, ParameterSetName = 'remote')] [ValidateSet('Public','Private','Domain')] [string] $LogProfile, @@ -29,7 +29,7 @@ function Get-PSFirewallLog { $Tail = 0, # ComputerName to retrieve log from - [Parameter(Mandatory = $false, ParameterSetName = 'remote')] + [Parameter(Mandatory = $true, ParameterSetName = 'remote')] [string] $ComputerName )