From 93c53a97ec78638bd2933e648d8b33f115be9238 Mon Sep 17 00:00:00 2001 From: Alexis Spencer Date: Fri, 25 Nov 2022 10:32:32 +1100 Subject: [PATCH] SupportShouldProcess removed --- Standard-CT-Module/CT-PS-Standard.psm1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Standard-CT-Module/CT-PS-Standard.psm1 b/Standard-CT-Module/CT-PS-Standard.psm1 index 05787f3..519dd60 100644 --- a/Standard-CT-Module/CT-PS-Standard.psm1 +++ b/Standard-CT-Module/CT-PS-Standard.psm1 @@ -14,7 +14,7 @@ trap { } function Initialize-Script { - [CmdletBinding(SupportsShouldProcess)] + [CmdletBinding()] param() <# ---- STANDARD SCRIPT BLOCK ---- @@ -140,7 +140,7 @@ function Initialize-Script { } Function Write-Log { - [CmdletBinding(SupportsShouldProcess)] + [CmdletBinding()] Param( [Parameter(ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True)] $output @@ -168,7 +168,7 @@ Function Write-APILog { Function Request-Download { # Downloads a file using BITS if possible, and if BITS is not available, downloads directly from URL - [CmdletBinding(SupportsShouldProcess)] + [CmdletBinding()] Param( [Parameter(ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True, Mandatory = $true)] [string[]] $FILE_URL, @@ -231,7 +231,7 @@ Function Request-Download { function Get-CurrentLineNumber { # Downloads a file using BITS if possible, and if BITS is not available, downloads directly from URL - [CmdletBinding(SupportsShouldProcess)] + [CmdletBinding()] param() return "$(Get-ChildItem $MyInvocation.ScriptLineNumber)" }