fix: 2 detections from PSScriptAnalyzer related to PSShouldProcess rule

main
Plínio Larrubia 2 years ago committed by Plínio Larrubia
parent 3b1b613223
commit 3623e3e33c
No known key found for this signature in database
GPG Key ID: 057B0A87CB137C69

@ -1,7 +1,7 @@
Import-Module -DisableNameChecking $PSScriptRoot\..\"title-templates.psm1"
function Set-ServiceStartup() {
[CmdletBinding(SupportsShouldProcess)]
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[ValidateSet('Automatic', 'Boot', 'Disabled', 'Manual', 'System')]

@ -1,7 +1,7 @@
Import-Module -DisableNameChecking $PSScriptRoot\..\"title-templates.psm1"
function Remove-UWPApp() {
[CmdletBinding(SupportsShouldProcess)]
[CmdletBinding()]
param (
[Parameter(Position = 0, Mandatory)]
[String[]] $AppxPackages

Loading…
Cancel
Save