Skip to content

Commit

Permalink
3.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Micke-K committed Jan 24, 2024
1 parent 6ac211a commit 47968b4
Show file tree
Hide file tree
Showing 30 changed files with 4,643 additions and 2,534 deletions.
2 changes: 1 addition & 1 deletion CloudAPIPowerShellManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'CloudAPIPowerShellManagement.psm1'

# Version number of this module.
ModuleVersion = '3.9.4'
ModuleVersion = '3.9.5'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions Core.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This module handles the WPF UI

function Get-ModuleVersion
{
'3.9.3'
'3.9.5'
}

function Initialize-Window
Expand Down Expand Up @@ -2792,7 +2792,7 @@ function Start-DownloadFile
$proxyURI = Get-ProxyURI
if($proxyURI)
{
$wc.Proxy = $proxyURI
$wc.Proxy = [System.Net.WebProxy]::new($proxyURI)
}

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
"value": "notConfigured"
},
{
"nameResourceKey": "microsoftEdge",
"nameResourceKey": "microsoftEdgeOptionText",
"descriptionResourceKey": "",
"value": "microsoftEdge"
},
Expand Down Expand Up @@ -543,7 +543,7 @@
{
"nameResourceKey": "TAPSettings.Tap.numberOfDays",
"descriptionResourceKey": "",
"entityKey": "pinRequiredInsteadOfBiometricTimeout",
"entityKey": "periodBeforePinReset",
"dataType": 100,
"booleanActions": 0,
"category": "SettingDetails.accessRequirements"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
{
"nameResourceKey": "TAPSettings.EncryptData.label",
"descriptionResourceKey": "TAPSettings.EncryptData.tooltip",
"entityKey": "appDataEncryptionType",
"entityKey": "encryptOrgData",
"dataType": 0,
"booleanActions": 101,
"category": "SettingDetails.dataProtection",
Expand Down Expand Up @@ -354,7 +354,7 @@
"value": "notConfigured"
},
{
"nameResourceKey": "microsoftEdge",
"nameResourceKey": "microsoftEdgeOptionText",
"descriptionResourceKey": "",
"value": "microsoftEdge"
},
Expand Down Expand Up @@ -398,14 +398,12 @@
}
]
},


{
"dataType": 8,
"nameResourceKey": "empty"
},




{
"nameResourceKey": "TAPSettings.PinAccess.label",
"descriptionResourceKey": "TAPSettings.PinAccess.tooltip",
Expand Down Expand Up @@ -496,17 +494,17 @@
{
"nameResourceKey": "TAPSettings.Tap.numberOfDays",
"descriptionResourceKey": "",
"entityKey": "pinRequiredInsteadOfBiometricTimeout",
"entityKey": "periodBeforePinReset",
"dataType": 100,
"booleanActions": 0,
"category": "SettingDetails.accessRequirements"
},
{
"nameResourceKey": "TAPSettings.Tap.previousPinBlockCount",
"descriptionResourceKey": "",
"entityKey": "previousPinBlockCount",
"dataType": 14,
"booleanActions": 0,
"nameResourceKey": "TAPSettings.AppPIN.label",
"descriptionResourceKey": "TAPSettings.AppPIN.tooltip",
"entityKey": "disableAppPinIfDevicePinIsSet",
"dataType": 0,
"booleanActions": 201,
"category": "SettingDetails.accessRequirements"
},
{
Expand Down
339 changes: 219 additions & 120 deletions Documentation/Strings-cs.json

Large diffs are not rendered by default.

329 changes: 214 additions & 115 deletions Documentation/Strings-de.json

Large diffs are not rendered by default.

377 changes: 238 additions & 139 deletions Documentation/Strings-en.json

Large diffs are not rendered by default.

337 changes: 218 additions & 119 deletions Documentation/Strings-es.json

Large diffs are not rendered by default.

329 changes: 214 additions & 115 deletions Documentation/Strings-fr.json

Large diffs are not rendered by default.

333 changes: 216 additions & 117 deletions Documentation/Strings-hu.json

Large diffs are not rendered by default.

331 changes: 215 additions & 116 deletions Documentation/Strings-it.json

Large diffs are not rendered by default.

355 changes: 227 additions & 128 deletions Documentation/Strings-ja.json

Large diffs are not rendered by default.

331 changes: 215 additions & 116 deletions Documentation/Strings-ko.json

Large diffs are not rendered by default.

333 changes: 216 additions & 117 deletions Documentation/Strings-nl.json

Large diffs are not rendered by default.

335 changes: 217 additions & 118 deletions Documentation/Strings-pl.json

Large diffs are not rendered by default.

377 changes: 238 additions & 139 deletions Documentation/Strings-pt.json

Large diffs are not rendered by default.

331 changes: 215 additions & 116 deletions Documentation/Strings-ru.json

Large diffs are not rendered by default.

335 changes: 217 additions & 118 deletions Documentation/Strings-sv.json

Large diffs are not rendered by default.

339 changes: 219 additions & 120 deletions Documentation/Strings-tr.json

Large diffs are not rendered by default.

377 changes: 238 additions & 139 deletions Documentation/Strings-zh-chs.json

Large diffs are not rendered by default.

377 changes: 238 additions & 139 deletions Documentation/Strings-zh-cht.json

Large diffs are not rendered by default.

353 changes: 226 additions & 127 deletions Documentation/Strings-zh-hans.json

Large diffs are not rendered by default.

331 changes: 215 additions & 116 deletions Documentation/Strings-zh-hant.json

Large diffs are not rendered by default.

377 changes: 238 additions & 139 deletions Documentation/Strings-zh.json

Large diffs are not rendered by default.

21 changes: 19 additions & 2 deletions Extensions/Documentation.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $global:documentationProviders = @()

function Get-ModuleVersion
{
'2.0.3'
'2.1.0'
}

function Invoke-InitializeModule
Expand Down Expand Up @@ -1056,6 +1056,11 @@ function Invoke-TranslateSettingsObject
#>
$cfgSettings = (Invoke-GraphRequest "/deviceManagement/configurationPolicies('$($obj.Id)')/settings?`$expand=settingDefinitions&top=1000" -ODataMetadata "minimal" @params).Value

if($obj.'@ObjectFromFile')
{
$cfgSettings = $obj.Settings
}

if(-not $global:cfgCategories)
{
$global:cfgCategories = (Invoke-GraphRequest "/deviceManagement/configurationCategories?`$filter=platforms has 'windows10' and technologies has 'mdm'" -ODataMetadata "minimal" @params).Value
Expand All @@ -1064,7 +1069,14 @@ function Invoke-TranslateSettingsObject
$script:settingCatalogasCategories = @{}
foreach($cfgSetting in $cfgSettings)
{
$defObj = $cfgSetting.settingDefinitions | Where id -eq $cfgSetting.settingInstance.settingDefinitionId
if($obj.'@ObjectFromFile' -and -not $cfgSetting.settingDefinitions)
{
$defObj = Invoke-GraphRequest "/deviceManagement/configurationSettings/$($cfgSetting.settingInstance.settingDefinitionId)"
}
else
{
$defObj = $cfgSetting.settingDefinitions | Where id -eq $cfgSetting.settingInstance.settingDefinitionId
}
#$defObj = $cfgSetting.settingDefinitions | Where { $_.id -eq $cfgSetting.settingInstance.settingDefinitionId -or $_.id -eq $cfgSettings.settingInstanceTemplate.settingDefinitionId }
if(-not $defObj -or $script:settingCatalogasCategories.ContainsKey($defObj.categoryId)) { continue }

Expand Down Expand Up @@ -1111,6 +1123,10 @@ function Add-SettingsSetting
$childSettings = @()

$settingsDef = $settingsDefs | Where id -eq $settingInstance.settingDefinitionId
if(-not $settingsDef -and $settingInstance.settingDefinitionId)
{
$settingsDef = Invoke-GraphRequest "/deviceManagement/configurationSettings/$($settingInstance.settingDefinitionId)"
}
$categoryDef = $global:cfgCategories | Where Id -eq $settingsDef.categoryId #$script:settingCatalogasCategories[$settingsDef.categoryId]

if($settingsDef.categoryId -ne $categoryDef.rootCategoryId)
Expand Down Expand Up @@ -2092,6 +2108,7 @@ function Invoke-TranslateSection
if($prop.dataType -eq 8)
{
if($prop.nameResourceKey -eq "LearnMore") { continue }
elseif($prop.nameResourceKey -eq "Empty") { $script:CurrentSubCategory = $null }
elseif($prop.nameResourceKey -in $script:categoriesToIgnore) { continue }
elseif($prop.nameResourceKey)
{
Expand Down
86 changes: 75 additions & 11 deletions Extensions/DocumentationCustom.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This module will also document some objects based on PowerShell functions

function Get-ModuleVersion
{
'1.6.3'
'1.6.4'
}

function Invoke-InitializeModule
Expand All @@ -35,6 +35,7 @@ function Initialize-CDDocumentation
{
$script:allTenantApps = $null
$script:allTermsOfUse = $null
$script:allAuthenticationStrength = $null
$script:allAuthenticationContextClasses = $null
$script:allCustomCompliancePolicies = $null
}
Expand Down Expand Up @@ -760,9 +761,10 @@ function Add-CDDocumentCustomProfileProperty
}
elseif($obj.'@OData.Type' -eq "#microsoft.graph.androidManagedAppProtection")
{
$obj | Add-Member Noteproperty -Name "overrideFingerprint" -Value ($obj.pinRequiredInsteadOfBiometricTimeout -ne $null)
$obj | Add-Member Noteproperty -Name "pinReset" -Value ($obj.pinRequiredInsteadOfBiometricTimeout -ne $null)
$obj | Add-Member Noteproperty -Name "overrideFingerprint" -Value ($obj.pinRequiredInsteadOfBiometricTimeout -ne $null -and $obj.pinRequiredInsteadOfBiometricTimeout -ne "PT0S")
$obj | Add-Member Noteproperty -Name "pinReset" -Value ($obj.periodBeforePinReset -ne $null -and $obj.periodBeforePinReset -ne "PT0S")
$obj | Add-Member Noteproperty -Name "managedBrowserSelection" -Value (?: $obj.customBrowserPackageId "unmanagedBrowser" $obj.managedBrowser)
$obj | Add-Member Noteproperty -Name "encryptOrgData" -Value ($obj.appDataEncryptionType -ne "useDeviceSettings")

$retValue = $true
}
Expand All @@ -785,10 +787,11 @@ function Add-CDDocumentCustomProfileProperty

$obj | Add-Member Noteproperty -Name "sendDataSelector" -Value $sendDataOption

$obj | Add-Member Noteproperty -Name "overrideFingerprint" -Value ($obj.pinRequiredInsteadOfBiometricTimeout -ne $null)
$obj | Add-Member Noteproperty -Name "pinReset" -Value ($obj.pinRequiredInsteadOfBiometricTimeout -ne $null)
$obj | Add-Member Noteproperty -Name "overrideFingerprint" -Value ($obj.pinRequiredInsteadOfBiometricTimeout -ne $null -and $obj.pinRequiredInsteadOfBiometricTimeout -ne "PT0S")
$obj | Add-Member Noteproperty -Name "pinReset" -Value ($obj.periodBeforePinReset -ne $null -and $obj.periodBeforePinReset -ne "PT0S")
$obj | Add-Member Noteproperty -Name "managedBrowserSelection" -Value (?: $obj.customBrowserPackageId "unmanagedBrowser" $obj.managedBrowser)

$obj | Add-Member Noteproperty -Name "encryptOrgData" -Value ($obj.appDataEncryptionType -ne "useDeviceSettings")

$retValue = $true
}
elseif($obj.'@OData.Type' -eq "#microsoft.graph.windowsUpdateForBusinessConfiguration")
Expand Down Expand Up @@ -2759,6 +2762,19 @@ function Invoke-CDDocumentConditionalAccess
elseif($script:allTermsOfUse -isnot [Object[]]) { $script:allTermsOfUse = @($script:allTermsOfUse ) }
}

<#
if(-not $script:allAuthenticationStrength -and (($obj.grantControls.authenticationStrength | measure).Count -gt 0))
{
$script:allAuthenticationStrength = Get-DocOfflineObjects "AuthenticationStrengths"
if(-not $script:allAuthenticationStrength)
{
$script:allAuthenticationStrength = (Invoke-GraphRequest -url "/identity/conditionalAccess/authenticationStrengths/policies?`$select=displayName,Id" -ODataMetadata "minimal").value
}
if(-not $script:allAuthenticationStrength ) { $script:allAuthenticationStrength = @()}
elseif($script:allAuthenticationStrength -isnot [Object[]]) { $script:allAuthenticationStrength = @($script:allAuthenticationStrength ) }
}
#>

if($obj.conditions.locations.includeLocations.Count -gt 0)
{
$tmpObjs = @()
Expand Down Expand Up @@ -2998,6 +3014,34 @@ function Invoke-CDDocumentConditionalAccess
EntityKey = "termsOfUse"
})
}

if(($obj.grantControls.authenticationStrength | measure).Count -gt 0)
{
$authenticationStrngth = @()
foreach($tmpId in $obj.grantControls.authenticationStrength)
{
$authenticationStrngth += ?? $obj.grantControls.authenticationStrength.displayName $tmpId
}

Add-CustomSettingObject ([PSCustomObject]@{
Name = Get-LanguageString "AzureCA.WhatIfBlade.authenticationStrength"
Value = $termsOfUse -join $script:objectSeparator
Category = $category
SubCategory = ""
EntityKey = "authenticationStrength"
})
}

if(($obj.grantControls.customAuthenticationFactors | measure).Count -gt 0)
{
Add-CustomSettingObject ([PSCustomObject]@{
Name = Get-LanguageString "AzureCA.menuItemClaimProviderControls"
Value = $obj.grantControls.customAuthenticationFactors -join $script:objectSeparator
Category = $category
SubCategory = ""
EntityKey = "customAuthenticationFactors"
})
}

Add-CustomSettingObject ([PSCustomObject]@{
Name = Get-LanguageString "AzureCA.descriptionContentForControlsAndOr"
Expand Down Expand Up @@ -3042,10 +3086,6 @@ function Invoke-CDDocumentConditionalAccess

if($obj.sessionControls.signInFrequency.isEnabled -eq $true)
{
if($obj.sessionControls.cloudAppSecurity.cloudAppSecurityType -eq "mcasConfigured") { $strId = "useCustomControls" }
elseif($obj.sessionControls.cloudAppSecurity.cloudAppSecurityType -eq "monitorOnly") { $strId = "monitorOnly" }
elseif($obj.sessionControls.cloudAppSecurity.cloudAppSecurityType -eq "blockDownloads") { $strId = "blockDownloads" }

if($obj.sessionControls.signInFrequency.type -eq "hours")
{
if($obj.sessionControls.signInFrequency.value -gt 1)
Expand All @@ -3057,7 +3097,7 @@ function Invoke-CDDocumentConditionalAccess
$value = Get-LanguageString "AzureCA.SessionLifetime.SignInFrequency.Option.Hour.singular"
}
}
else
elseif($obj.sessionControls.signInFrequency.type -eq "days")
{
if($obj.sessionControls.signInFrequency.value -gt 1)
{
Expand All @@ -3068,6 +3108,10 @@ function Invoke-CDDocumentConditionalAccess
$value = Get-LanguageString "AzureCA.SessionLifetime.SignInFrequency.Option.Day.singular"
}
}
else
{
$value = Get-LanguageString "AzureCA.SessionControls.SignInFrequency.everytime"
}

Add-CustomSettingObject ([PSCustomObject]@{
Name = Get-LanguageString "AzureCA.SessionLifetime.SignInFrequency.Option.label"
Expand All @@ -3077,6 +3121,26 @@ function Invoke-CDDocumentConditionalAccess
EntityKey = "SignInFrequency"
})
}

if($null -ne $obj.sessionControls.continuousAccessEvaluation)
{
if($obj.sessionControls.continuousAccessEvaluation.mode -eq "strictLocation")
{
$value = Get-LanguageString "AzureCA.SessionControls.Cae.strictLocation"
}
else
{
$value = Get-LanguageString "AzureCA.SessionControls.Cae.disable"
}

Add-CustomSettingObject ([PSCustomObject]@{
Name = Get-LanguageString "AzureCA.SessionControls.Cae.checkboxLabel"
Value = $value
Category = $category
SubCategory = ""
EntityKey = "continuousAccessEvaluation"
})
}

if($obj.sessionControls.persistentBrowser.isEnabled -eq $true)
{
Expand Down
15 changes: 9 additions & 6 deletions Extensions/EndpointManager.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This module is for the Endpoint Manager/Intune View. It manages Export/Import/Co
#>
function Get-ModuleVersion
{
'3.9.3'
'3.9.5'
}

function Invoke-InitializeModule
Expand Down Expand Up @@ -1131,7 +1131,7 @@ function Start-PostExportEndpointSecurity
{
param($obj, $objectType, $path)

$fileName = (Get-GraphObjectName $obj $objectType)
$fileName = (Get-GraphObjectName $obj $objectType).Trim('.')
if((Get-SettingValue "AddIDToExportFile") -eq $true -and $obj.Id)
{
$fileName = ($fileName + "_" + $obj.Id)
Expand Down Expand Up @@ -2144,6 +2144,9 @@ function Add-DetailExtensionApplications
$dlgSave = [System.Windows.Forms.SaveFileDialog]::new()
$dlgSave.InitialDirectory = $pkgPath
$dlgSave.FileName = ($obj.FileName + ".encrypted")
$dlgSave.DefaultExt = "*.encrypted"
$dlgSave.Filter = "Encrypted intunewin (*.encrypted)|*.encrypted|All files (*.*)|*.*"

if($dlgSave.ShowDialog() -eq [System.Windows.Forms.DialogResult]::OK -and $dlgSave.Filename)
{
$contentFileObj = Start-DownloadAppContent $obj $dlgSave.FileName
Expand All @@ -2158,7 +2161,7 @@ function Add-DetailExtensionApplications
$of = [System.Windows.Forms.OpenFileDialog]::new()
$of.InitialDirectory = $pkgPath
$of.DefaultExt = "*.json"
$of.Filter = "Json (*.json)|*.*"
$of.Filter = "Json (*.json)|*.json"
$of.Multiselect = $false

if($of.ShowDialog() -eq "OK")
Expand Down Expand Up @@ -2745,7 +2748,7 @@ function Start-PostExportAdministrativeTemplate
{
param($obj, $objectType, $path)

$fileName = (Get-GraphObjectName $obj $objectType)
$fileName = (Get-GraphObjectName $obj $objectType).Trim('.')
if((Get-SettingValue "AddIDToExportFile") -eq $true -and $obj.Id)
{
$fileName = ($fileName + "_" + $obj.Id)
Expand Down Expand Up @@ -3009,7 +3012,7 @@ function Start-PostExportRoleDefinitions
{
param($obj, $objectType, $path)

$fileName = (Get-GraphObjectName $obj $objectType)
$fileName = (Get-GraphObjectName $obj $objectType).Trim('.')
if((Get-SettingValue "AddIDToExportFile") -eq $true -and $obj.Id)
{
$fileName = ($fileName + "_" + $obj.Id)
Expand Down Expand Up @@ -3511,7 +3514,7 @@ function Add-EMAssignmentsToExportFile

if($global:chkExportAssignments.IsChecked -ne $true) { return }

$fileName = (Get-GraphObjectName $obj $objectType)
$fileName = (Get-GraphObjectName $obj $objectType).Trim('.')
if((Get-SettingValue "AddIDToExportFile") -eq $true -and $obj.Id)
{
$fileName = ($fileName + "_" + $obj.Id)
Expand Down
Loading

0 comments on commit 47968b4

Please sign in to comment.