Skip to content

Commit 93b3359

Browse files
author
Sergio Fonseca
committed
Set a minimun version por SQLServer Powershell module. Default v20 still have problem
Import-Module SqlServer -DisableNameChecking -MinimumVersion "21.0.171.78"
1 parent cbf3f1d commit 93b3359

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/features/epm-framework/5.0/1Down Version Evaluation PS/EPM_EnterpriseEvaluation_5.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Evaluate specific Policies against a Server List
22
# Uses the Invoke-PolicyEvaluation Cmdlet
33

4-
#SAMPLE: #.\EPM_EnterpriseEvaluation_4.ps1 -ConfigurationGroup "DEV" -PolicyCategoryFilter "Name Pattern" –EvalMode “Check”
4+
#SAMPLE: #.\EPM_EnterpriseEvaluation_5.ps1 -ConfigurationGroup "DEV" -PolicyCategoryFilter "Name Pattern" –EvalMode “Check”
55

66
<#
77
Run Powershell ISE as Admin
@@ -23,7 +23,7 @@ param([string]$ConfigurationGroup=$(Throw `
2323
[string]$EvalMode=$(Throw "Parameter missing: -EvalMode EvalMode"))
2424

2525
Remove-Module SQLPS -Force -ErrorAction SilentlyContinue
26-
Import-Module SqlServer -DisableNameChecking
26+
Import-Module SqlServer -DisableNameChecking -MinimumVersion "21.0.171.78"
2727

2828
# Parameter -ConfigurationGroup specifies the
2929
# Central Management Server group to evaluate

0 commit comments

Comments
 (0)