From 832edf4e01b4332c1c0cb2999f9cccd65383e118 Mon Sep 17 00:00:00 2001 From: Christoph Bergmeister Date: Wed, 24 Apr 2019 08:26:59 +0100 Subject: [PATCH 1/3] FIx documentation for new UseCompatible* rules: - Enabled is not a valid key for the settings - Use profile string name that is available in the shipped version --- RuleDocumentation/UseCompatibleCommands.md | 4 ++-- RuleDocumentation/UseCompatibleSyntax.md | 2 +- RuleDocumentation/UseCompatibleTypes.md | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/RuleDocumentation/UseCompatibleCommands.md b/RuleDocumentation/UseCompatibleCommands.md index 62755b654..251f15990 100644 --- a/RuleDocumentation/UseCompatibleCommands.md +++ b/RuleDocumentation/UseCompatibleCommands.md @@ -75,8 +75,8 @@ An example configuration might look like: UseCompatibleCommmands = @{ Enable = $true TargetProfiles = @( - 'ubuntu_x64_18.04_6.1.2_x64_4.0.30319.42000_core' - 'win-4_x64_10.0.18312.0_6.1.1_x64_4.0.30319.42000_framework' + 'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core' + 'win-48_x64_10.0.17763.0_5.1.17763.316_x64_4.0.30319.42000_framework' 'MyProfile' 'another_custom_profile_in_the_profiles_directory.json' 'D:\My Profiles\profile1.json' diff --git a/RuleDocumentation/UseCompatibleSyntax.md b/RuleDocumentation/UseCompatibleSyntax.md index ceb1b4a45..2253e7edf 100644 --- a/RuleDocumentation/UseCompatibleSyntax.md +++ b/RuleDocumentation/UseCompatibleSyntax.md @@ -13,7 +13,7 @@ due to those PowerShell versions not being able to parse the incompatible syntax @{ Rules = @{ UseCompatibleCommmands = @{ - Enabled = $true + Enable = $true TargetedVersions = @( "6.0", "5.1", diff --git a/RuleDocumentation/UseCompatibleTypes.md b/RuleDocumentation/UseCompatibleTypes.md index 4863f2005..23bd0c0bf 100644 --- a/RuleDocumentation/UseCompatibleTypes.md +++ b/RuleDocumentation/UseCompatibleTypes.md @@ -73,10 +73,10 @@ An example configuration might look like: @{ Rules = @{ UseCompatibleTypes = @{ - Enabled = $true + Enable = $true TargetProfiles = @( - 'ubuntu_x64_18.04_6.1.2_x64_4.0.30319.42000_core' - 'win-4_x64_10.0.18312.0_6.1.1_x64_4.0.30319.42000_framework' + 'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core' + 'win-48_x64_10.0.17763.0_5.1.17763.316_x64_4.0.30319.42000_framework' 'MyProfile' 'another_custom_profile_in_the_profiles_directory.json' 'D:\My Profiles\profile1.json' From d33fb7173696416a65c26d6fb4ac49dcfbb0ac83 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Wed, 24 Apr 2019 09:00:44 +0100 Subject: [PATCH 2/3] Update UseCompatibleCommands.md --- RuleDocumentation/UseCompatibleCommands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RuleDocumentation/UseCompatibleCommands.md b/RuleDocumentation/UseCompatibleCommands.md index 251f15990..aaf13cfd5 100644 --- a/RuleDocumentation/UseCompatibleCommands.md +++ b/RuleDocumentation/UseCompatibleCommands.md @@ -72,7 +72,7 @@ An example configuration might look like: ```PowerShell @{ Rules = @{ - UseCompatibleCommmands = @{ + PSUseCompatibleCommmands = @{ Enable = $true TargetProfiles = @( 'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core' From afaf83ce28a0979726986af3359d6003968d5306 Mon Sep 17 00:00:00 2001 From: "Christoph Bergmeister [MVP]" Date: Wed, 24 Apr 2019 09:02:46 +0100 Subject: [PATCH 3/3] Update UseCompatibleCommands.md --- RuleDocumentation/UseCompatibleCommands.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RuleDocumentation/UseCompatibleCommands.md b/RuleDocumentation/UseCompatibleCommands.md index aaf13cfd5..251f15990 100644 --- a/RuleDocumentation/UseCompatibleCommands.md +++ b/RuleDocumentation/UseCompatibleCommands.md @@ -72,7 +72,7 @@ An example configuration might look like: ```PowerShell @{ Rules = @{ - PSUseCompatibleCommmands = @{ + UseCompatibleCommmands = @{ Enable = $true TargetProfiles = @( 'ubuntu_x64_18.04_6.1.3_x64_4.0.30319.42000_core'