diff --git a/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 b/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 index 3900dc578..d5b39baca 100644 --- a/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 +++ b/Tests/Engine/CommunityAnalyzerRules/CommunityAnalyzerRules.psm1 @@ -126,7 +126,7 @@ function Measure-RequiresRunAsAdministrator .DESCRIPTION The #Requires statement prevents a script from running unless the Windows PowerShell version, modules, snap-ins, and module and snap-in version prerequisites are met. From Windows PowerShell 3.0, the #Requires statement let script developers specify Windows PowerShell modules that the script requires. - To fix a violation of this rule, please consider to use #Requires -RunAsAdministrator instead of using Import-Module. + To fix a violation of this rule, please consider to use #Requires -Modules { | } instead of using Import-Module. .EXAMPLE Measure-RequiresModules -ScriptBlockAst $ScriptBlockAst .INPUTS @@ -938,4 +938,4 @@ function Measure-HelpNote } } -Export-ModuleMember -Function Measure* \ No newline at end of file +Export-ModuleMember -Function Measure*