fix: Corrected logic for 8.1.1
This commit is contained in:
@@ -27,17 +27,18 @@ function Test-TeamsExternalFileSharing {
|
|||||||
# Assuming that 'approvedProviders' is a list of approved cloud storage service names
|
# Assuming that 'approvedProviders' is a list of approved cloud storage service names
|
||||||
# This list must be defined according to your organization's approved cloud storage services
|
# This list must be defined according to your organization's approved cloud storage services
|
||||||
$clientConfig = Get-CISMSTeamsOutput -Rec $recnum
|
$clientConfig = Get-CISMSTeamsOutput -Rec $recnum
|
||||||
$approvedProviders = @("AllowDropBox", "AllowBox", "AllowGoogleDrive", "AllowShareFile", "AllowEgnyte")
|
$unapprovedProviders = @("AllowDropBox", "AllowBox", "AllowGoogleDrive", "AllowShareFile", "AllowEgnyte")
|
||||||
$isCompliant = $true
|
$isCompliant = $true
|
||||||
$nonCompliantProviders = @()
|
$nonCompliantProviders = @()
|
||||||
|
|
||||||
foreach ($provider in $approvedProviders) {
|
foreach ($provider in $unapprovedProviders) {
|
||||||
if (-not $clientConfig.$provider) {
|
if ($clientConfig.$provider) {
|
||||||
$isCompliant = $false
|
$isCompliant = $false
|
||||||
$nonCompliantProviders += $provider
|
$nonCompliantProviders += $provider
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Create an instance of CISAuditResult and populate it
|
||||||
# Create an instance of CISAuditResult and populate it
|
# Create an instance of CISAuditResult and populate it
|
||||||
$params = @{
|
$params = @{
|
||||||
Rec = $recnum
|
Rec = $recnum
|
||||||
|
Reference in New Issue
Block a user