From 7de992f92c9e2fe42216f24d47be62164b49d2e4 Mon Sep 17 00:00:00 2001 From: Sinisa Sokolic Date: Mon, 27 Nov 2023 15:55:03 +0100 Subject: [PATCH] fix: minor fixes for examples --- .../DoD_Google_Chrome_STIG_Computer_v2r8.ps1 | 8 ++++---- ...Microsoft_Defender_Antivirus_STIG_Computer_v2r4.ps1 | 8 ++++---- ...Office_System_2016_and_Components_STIG_Computer.ps1 | 8 ++++---- .../DoD_Windows_10_STIG_Computer_v2r6.ps1 | 8 ++++---- Examples/Resources/XOAP_DSCResource.ps1 | 10 ---------- 5 files changed, 16 insertions(+), 26 deletions(-) delete mode 100644 Examples/Resources/XOAP_DSCResource.ps1 diff --git a/Examples/DSCResources/DoD_Google_Chrome_STIG_Computer_v2r8/DoD_Google_Chrome_STIG_Computer_v2r8.ps1 b/Examples/DSCResources/DoD_Google_Chrome_STIG_Computer_v2r8/DoD_Google_Chrome_STIG_Computer_v2r8.ps1 index 267bed5..5c23549 100755 --- a/Examples/DSCResources/DoD_Google_Chrome_STIG_Computer_v2r8/DoD_Google_Chrome_STIG_Computer_v2r8.ps1 +++ b/Examples/DSCResources/DoD_Google_Chrome_STIG_Computer_v2r8/DoD_Google_Chrome_STIG_Computer_v2r8.ps1 @@ -1,9 +1,9 @@ -Configuration 'DoD_Adobe_Acrobat_Reader_DC_Continuous_STIG_Computers_V2R1' +Configuration 'DoD_Google_Chrome_STIG_Computer_v2r8' { - Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Adobe_Acrobat_Reader_DC_Continuous_STIG_Computers_V2R1' -ModuleVersion '0.0.1' + Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Google_Chrome_STIG_Computer_v2r8' -ModuleVersion '0.0.1' - DoD_Adobe_Acrobat_Reader_DC_Continuous_STIG_Computers_V2R1 'Example' + DoD_Google_Chrome_STIG_Computer_v2r8 'Example' { } } -DoD_Adobe_Acrobat_Reader_DC_Continuous_STIG_Computers_V2R1 -OutputPath 'C:\DoD_Adobe_Acrobat_Reader_DC_Continuous_STIG_Computers_V2R1' +DoD_Google_Chrome_STIG_Computer_v2r8 -OutputPath 'C:\DoD_Google_Chrome_STIG_Computer_v2r8' diff --git a/Examples/DSCResources/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4.ps1 b/Examples/DSCResources/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4.ps1 index 7712285..957ecdc 100755 --- a/Examples/DSCResources/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4.ps1 +++ b/Examples/DSCResources/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4/DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4.ps1 @@ -1,9 +1,9 @@ -Configuration 'DoD_Internet_Explorer_11_STIG_Computer_v2r4' +Configuration 'DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4' { - Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Internet_Explorer_11_STIG_Computer_v2r4' -ModuleVersion '0.0.1' + Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4' -ModuleVersion '0.0.1' - DoD_Internet_Explorer_11_STIG_Computer_v2r4 'Example' + DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4 'Example' { } } -DoD_Internet_Explorer_11_STIG_Computer_v2r4 -OutputPath 'C:\DoD_Internet_Explorer_11_STIG_Computer_v2r4' +DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4 -OutputPath 'C:\DoD_Microsoft_Defender_Antivirus_STIG_Computer_v2r4' diff --git a/Examples/DSCResources/DoD_Office_System_2016_and_Components_STIG_Computer/DoD_Office_System_2016_and_Components_STIG_Computer.ps1 b/Examples/DSCResources/DoD_Office_System_2016_and_Components_STIG_Computer/DoD_Office_System_2016_and_Components_STIG_Computer.ps1 index 4951bce..d776952 100755 --- a/Examples/DSCResources/DoD_Office_System_2016_and_Components_STIG_Computer/DoD_Office_System_2016_and_Components_STIG_Computer.ps1 +++ b/Examples/DSCResources/DoD_Office_System_2016_and_Components_STIG_Computer/DoD_Office_System_2016_and_Components_STIG_Computer.ps1 @@ -1,9 +1,9 @@ -Configuration 'DoD_Windows_10_STIG_Computer_v2r6' +Configuration 'DoD_Office_System_2016_and_Components_STIG_Computer' { - Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Windows_10_STIG_Computer_v2r6' -ModuleVersion '0.0.1' + Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Office_System_2016_and_Components_STIG_Computer' -ModuleVersion '0.0.1' - DoD_Windows_10_STIG_Computer_v2r6 'Example' + DoD_Office_System_2016_and_Components_STIG_Computer 'Example' { } } -DoD_Windows_10_STIG_Computer_v2r6 -OutputPath 'C:\DoD_Windows_10_STIG_Computer_v2r6' +DoD_Office_System_2016_and_Components_STIG_Computer -OutputPath 'C:\DoD_Office_System_2016_and_Components_STIG_Computer' diff --git a/Examples/DSCResources/DoD_Windows_10_STIG_Computer_v2r6/DoD_Windows_10_STIG_Computer_v2r6.ps1 b/Examples/DSCResources/DoD_Windows_10_STIG_Computer_v2r6/DoD_Windows_10_STIG_Computer_v2r6.ps1 index a2e547c..4951bce 100755 --- a/Examples/DSCResources/DoD_Windows_10_STIG_Computer_v2r6/DoD_Windows_10_STIG_Computer_v2r6.ps1 +++ b/Examples/DSCResources/DoD_Windows_10_STIG_Computer_v2r6/DoD_Windows_10_STIG_Computer_v2r6.ps1 @@ -1,9 +1,9 @@ -Configuration 'DoD_Mozilla_Firefox_STIG_Computer_v6r5' +Configuration 'DoD_Windows_10_STIG_Computer_v2r6' { - Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Mozilla_Firefox_STIG_Computer_v6r5' -ModuleVersion '0.0.1' + Import-DSCResource -Module 'XOAPSTIGAugust2023DSC' -Name 'DoD_Windows_10_STIG_Computer_v2r6' -ModuleVersion '0.0.1' - DoD_Mozilla_Firefox_STIG_Computer_v6r5 'Example' + DoD_Windows_10_STIG_Computer_v2r6 'Example' { } } -DoD_Mozilla_Firefox_STIG_Computer_v6r5 -OutputPath 'C:\DoD_Mozilla_Firefox_STIG_Computer_v6r5' +DoD_Windows_10_STIG_Computer_v2r6 -OutputPath 'C:\DoD_Windows_10_STIG_Computer_v2r6' diff --git a/Examples/Resources/XOAP_DSCResource.ps1 b/Examples/Resources/XOAP_DSCResource.ps1 deleted file mode 100644 index 45e1aeb..0000000 --- a/Examples/Resources/XOAP_DSCResource.ps1 +++ /dev/null @@ -1,10 +0,0 @@ -configuration 'XOAPModuleTemplateDSC' -{ - Import-DSCResource -Module 'XOAPModuleTemplateDSC' -Name 'XOAP_DSCResource' -ModuleVersion '0.0.1' - - XOAP_DSCResource 'Example' - { - Example [String]= 'Example' - } -} -XOAP_DSCResource -OutputPath 'C:\XOAP_DSCResource'