-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5448 from nee-source/feat/windows-10-baseline
Feat/windows 10 baseline
- Loading branch information
Showing
12 changed files
with
3,458 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 27 additions & 15 deletions
42
...Microsoft365DSC/DSCResources/MSFT_IntuneSecurityBaselineDefenderForEndpoint/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2,146 changes: 2,146 additions & 0 deletions
2,146
...CResources/MSFT_IntuneSecurityBaselineWindows10/MSFT_IntuneSecurityBaselineWindows10.psm1
Large diffs are not rendered by default.
Oops, something went wrong.
527 changes: 527 additions & 0 deletions
527
...rces/MSFT_IntuneSecurityBaselineWindows10/MSFT_IntuneSecurityBaselineWindows10.schema.mof
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
...les/Microsoft365DSC/DSCResources/MSFT_IntuneSecurityBaselineWindows10/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
# IntuneSecurityBaselineWindows10 | ||
|
||
## Description | ||
|
||
Intune Security Baseline for Windows10 |
44 changes: 44 additions & 0 deletions
44
Modules/Microsoft365DSC/DSCResources/MSFT_IntuneSecurityBaselineWindows10/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"resourceName":"IntuneSecurityBaselineWindows10", | ||
"description":"This resource configures an Intune Security Baseline for Windows10.", | ||
"permissions":{ | ||
"graph":{ | ||
"delegated":{ | ||
"read":[ | ||
{ | ||
"name":"DeviceManagementConfiguration.Read.All" | ||
}, | ||
{ | ||
"name":"Group.Read.All" | ||
} | ||
], | ||
"update":[ | ||
{ | ||
"name":"Group.Read.All" | ||
}, | ||
{ | ||
"name":"DeviceManagementConfiguration.ReadWrite.All" | ||
} | ||
] | ||
}, | ||
"application":{ | ||
"read":[ | ||
{ | ||
"name":"DeviceManagementConfiguration.Read.All" | ||
}, | ||
{ | ||
"name":"Group.Read.All" | ||
} | ||
], | ||
"update":[ | ||
{ | ||
"name":"Group.Read.All" | ||
}, | ||
{ | ||
"name":"DeviceManagementConfiguration.ReadWrite.All" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
Modules/Microsoft365DSC/Examples/Resources/IntuneSecurityBaselineWindows10/1-Create.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<# | ||
This example is used to test new resources and showcase the usage of new resources being worked on. | ||
It is not meant to use as a production baseline. | ||
#> | ||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter()] | ||
[System.String] | ||
$ApplicationId, | ||
|
||
[Parameter()] | ||
[System.String] | ||
$TenantId, | ||
|
||
[Parameter()] | ||
[System.String] | ||
$CertificateThumbprint | ||
) | ||
Import-DscResource -ModuleName Microsoft365DSC | ||
|
||
node localhost | ||
{ | ||
IntuneSecurityBaselineWindows10 'mySecurityBaselineWindows10' | ||
{ | ||
DisplayName = 'test' | ||
DeviceSettings = MSFT_MicrosoftGraphIntuneSettingsCatalogDeviceSettings_IntuneSecurityBaselineWindows10 | ||
{ | ||
Pol_MSS_DisableIPSourceRoutingIPv6 = '1' | ||
DisableIPSourceRoutingIPv6 = '0' | ||
BlockExecutionOfPotentiallyObfuscatedScripts = 'block' | ||
HardenedUNCPaths_Pol_HardenedPaths = '1' | ||
pol_hardenedPaths = @( | ||
MSFT_MicrosoftGraphIntuneSettingsCatalogpol_hardenedpaths{ | ||
Key = '\\*\SYSVOL' | ||
Value = 'RequireMutualAuthentication=1,RequireIntegrity=1' | ||
} | ||
) | ||
} | ||
UserSettings = MSFT_MicrosoftGraphIntuneSettingsCatalogUserSettings_IntuneSecurityBaselineWindows10 | ||
{ | ||
AllowWindowsSpotlight = '1' | ||
} | ||
Ensure = 'Present' | ||
ApplicationId = $ApplicationId; | ||
TenantId = $TenantId; | ||
CertificateThumbprint = $CertificateThumbprint; | ||
} | ||
} | ||
} |
51 changes: 51 additions & 0 deletions
51
Modules/Microsoft365DSC/Examples/Resources/IntuneSecurityBaselineWindows10/2-Update.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<# | ||
This example is used to test new resources and showcase the usage of new resources being worked on. | ||
It is not meant to use as a production baseline. | ||
#> | ||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter()] | ||
[System.String] | ||
$ApplicationId, | ||
|
||
[Parameter()] | ||
[System.String] | ||
$TenantId, | ||
|
||
[Parameter()] | ||
[System.String] | ||
$CertificateThumbprint | ||
) | ||
Import-DscResource -ModuleName Microsoft365DSC | ||
|
||
node localhost | ||
{ | ||
IntuneSecurityBaselineWindows10 'mySecurityBaselineWindows10' | ||
{ | ||
DisplayName = 'test' | ||
DeviceSettings = MSFT_MicrosoftGraphIntuneSettingsCatalogDeviceSettings_IntuneSecurityBaselineWindows10 | ||
{ | ||
Pol_MSS_DisableIPSourceRoutingIPv6 = '1' | ||
DisableIPSourceRoutingIPv6 = '0' | ||
BlockExecutionOfPotentiallyObfuscatedScripts = 'block' | ||
HardenedUNCPaths_Pol_HardenedPaths = '1' | ||
pol_hardenedPaths = @( | ||
MSFT_MicrosoftGraphIntuneSettingsCatalogpol_hardenedpaths{ | ||
Key = '\\*\SYSVOL' | ||
Value = 'RequireMutualAuthentication=1,RequireIntegrity=1' | ||
} | ||
) | ||
} | ||
UserSettings = MSFT_MicrosoftGraphIntuneSettingsCatalogUserSettings_IntuneSecurityBaselineWindows10 | ||
{ | ||
AllowWindowsSpotlight = '1' #drift | ||
} | ||
Ensure = 'Present' | ||
ApplicationId = $ApplicationId; | ||
TenantId = $TenantId; | ||
CertificateThumbprint = $CertificateThumbprint; | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
Modules/Microsoft365DSC/Examples/Resources/IntuneSecurityBaselineWindows10/3-Remove.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<# | ||
This example is used to test new resources and showcase the usage of new resources being worked on. | ||
It is not meant to use as a production baseline. | ||
#> | ||
|
||
Configuration Example | ||
{ | ||
param( | ||
[Parameter()] | ||
[System.String] | ||
$ApplicationId, | ||
|
||
[Parameter()] | ||
[System.String] | ||
$TenantId, | ||
|
||
[Parameter()] | ||
[System.String] | ||
$CertificateThumbprint | ||
) | ||
Import-DscResource -ModuleName Microsoft365DSC | ||
|
||
node localhost | ||
{ | ||
IntuneSecurityBaselineWindows10 'mySecurityBaselineWindows10' | ||
{ | ||
DisplayName = 'test' | ||
Ensure = 'Absent' | ||
ApplicationId = $ApplicationId; | ||
TenantId = $TenantId; | ||
CertificateThumbprint = $CertificateThumbprint; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.