Skip to content

Commit

Permalink
Added validate pattern to mof file parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
anwather committed Apr 4, 2017
1 parent 90330a3 commit 44133b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions functions/Start-DSCEAscan.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ param
[parameter(Mandatory=$true,ParameterSetName='ComputerName')]
[parameter(Mandatory=$true,ParameterSetName='InputFile')]
[parameter(Mandatory=$true,ParameterSetName='CimSession')]
[ValidatePattern(".mof$")]
[string]$MofFile,

[parameter(Mandatory=$true,ParameterSetName='InputFile')]
Expand Down

0 comments on commit 44133b1

Please sign in to comment.