diff --git a/Source/Private/callMembershipAPI.ps1 b/Source/Private/callMembershipAPI.ps1 index a17c2845e..6e1f65f5e 100644 --- a/Source/Private/callMembershipAPI.ps1 +++ b/Source/Private/callMembershipAPI.ps1 @@ -9,8 +9,6 @@ function _callMembershipAPI { [ValidateSet('', 'Up', 'Down')] [string] $Direction ) - Set-StrictMode -Version Latest - # This will throw if this account does not support the graph API _supportsGraph diff --git a/Source/Private/common.ps1 b/Source/Private/common.ps1 index 1e8434ec3..c8d272059 100644 --- a/Source/Private/common.ps1 +++ b/Source/Private/common.ps1 @@ -1,5 +1,3 @@ -Set-StrictMode -Version Latest - $here = Split-Path -Parent $MyInvocation.MyCommand.Path [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseDeclaredVarsMoreThanAssignments", "It is used in other files")] diff --git a/Source/Public/Test-VSTeamMembership.ps1 b/Source/Public/Test-VSTeamMembership.ps1 index 429bc0012..d674e293f 100644 --- a/Source/Public/Test-VSTeamMembership.ps1 +++ b/Source/Public/Test-VSTeamMembership.ps1 @@ -8,8 +8,6 @@ function Test-VSTeamMembership { ) process { - Set-StrictMode -Version Latest - $PrevWarningPreference = $WarningPreference try { $WarningPreference = "SilentlyContinue" # avoid 404 warning, since that indicates it doesn't exist