Skip to content

Commit

Permalink
3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Micke-K committed Sep 4, 2021
1 parent 95bd8fc commit 58abeeb
Show file tree
Hide file tree
Showing 37 changed files with 882 additions and 136 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
.vs/
.vscode/
.git/
/CloudAPIPowerShellManagement.Log
/CloudAPIPowerShellManagement.Lo_
/Documentation/Get-LanguageStrings.ps1
/*.Log
/*.Lo_
/*.csv

8 changes: 4 additions & 4 deletions Core.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This module handles the WPF UI

function Get-ModuleVersion
{
'3.1.5'
'3.1.6'
}

function Start-CoreApp
Expand Down Expand Up @@ -484,7 +484,7 @@ function Show-UpdatesDialog
$content = Invoke-RestMethod "https://api.github.com/repos/Micke-K/IntuneManagement/contents/ReleaseNotes.md"
if($content)
{
$txt = [System.Text.Encoding]::ASCII.GetString(([System.Convert]::FromBase64String($content.content)))
$txt = [System.Text.Encoding]::UTF8.GetString(([System.Convert]::FromBase64String($content.content)))
Set-XamlProperty $script:dlgUpdates "txtReleaseNotes" "Text" $txt

if($content.sha -ne $curHash.Hash)
Expand Down Expand Up @@ -1528,8 +1528,8 @@ function Get-JWTtoken
while ($payload.Length % 4) { $payload += "=" } # Add padding to match required length

return (New-Object PSObject -Property @{
Header=(([System.Text.Encoding]::ASCII.GetString(([System.Convert]::FromBase64String($header)))) | ConvertFrom-Json)
Payload=(([System.Text.Encoding]::ASCII.GetString(([System.Convert]::FromBase64String($payload)))) | ConvertFrom-Json)
Header=(([System.Text.Encoding]::UTF8.GetString(([System.Convert]::FromBase64String($header)))) | ConvertFrom-Json)
Payload=(([System.Text.Encoding]::UTF8.GetString(([System.Convert]::FromBase64String($payload)))) | ConvertFrom-Json)
})
}
#endregion
Expand Down
4 changes: 2 additions & 2 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ These files will have to be re-generated when new functionality is released in I

**Scripts for Generated Files**

The scripts that automatically generates language files, translation files, object info etc. are not included in the release. These scripts are currently not in a state that they can be released. The best would be if Microsoft released all the required information in Graph. A deep dive into graph suggests that it might be possible in the future since some information about the generated files are there but with some properties missing or missing. The information can't be accessed unless an API is called that gets the definition for all the profiles at the same time.
The scripts that automatically generates language files, translation files, object info etc. are not included in the release. These scripts are currently not in a state that they can be released. The best would be if Microsoft released all the required information in Graph. A deep dive into graph suggests that it might be possible in the future since some information about the generated files are there but with some properties missing or language text missing. The information can't be accessed unless an API is called that gets the definition for all the profiles at the same time (the file is over 100MB).

## Extending The Documentation

Expand All @@ -130,7 +130,7 @@ The priority order for object documentation is:

**Documentation Provider**

The documentation provider takes care of the collection information about the object. The `DocumentationCustom.psm1`file is an example of this. This file has examples of custom translation of properties for json files and examples of custom translation of objects via a PowerShell functions.
The documentation provider takes care of collecting all the information about the object. The `DocumentationCustom.psm1`file is an example of this. This file has examples of custom translation of properties for json files and examples of custom translation of objects via a PowerShell functions.

Documentation providers has a Priority property. This defines in what order the providers will be triggered. The provider with the lowest priority number will be executed first. The included custom documentation provider has a priority number of 1000. The information gathering of the provider can be overridden by creating a custom documentation provider with a lower priority number.

Expand Down
81 changes: 81 additions & 0 deletions Documentation/ObjectInfo/#Applications.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,22 @@
]
}
},
{
"nameResourceKey": "OfficeSuiteAppsTab.xmlConfigurationLabel",
"descriptionResourceKey": "",
"entityKey": "MSAppsConfigXml",
"dataType": 20,
"booleanActions": 0,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"Expressions": [
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
}
]
}
},
{
"nameResourceKey": "OfficeSuiteAppsTab.appsToBeInstalledLabel",
"descriptionResourceKey": "OfficeSuiteAppsTab.selectOfficeAppsTooltip",
Expand Down Expand Up @@ -393,7 +409,12 @@
}
],
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -419,7 +440,12 @@
}
],
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -433,7 +459,12 @@
"dataType": 8,
"booleanActions": 0,
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -459,7 +490,12 @@
}
],
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand Down Expand Up @@ -497,7 +533,12 @@
}
],
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -513,7 +554,12 @@
"booleanActions": 109,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -529,7 +575,12 @@
"booleanActions": 0,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -543,7 +594,12 @@
"dataType": 8,
"booleanActions": 0,
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -559,7 +615,12 @@
"booleanActions": 109,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -575,7 +636,12 @@
"booleanActions": 109,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -591,7 +657,12 @@
"booleanActions": 109,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand All @@ -607,7 +678,12 @@
"booleanActions": 0,
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand Down Expand Up @@ -660,7 +736,12 @@
"category": "OfficeSuiteAppsTab.appSuiteConfigurationLabel",
"unconfiguredValue": "os-default",
"Condition": {
"type": "and",
"Expressions": [
{
"property": "MSAppsConfigXml",
"operator": "null"
},
{
"property": "@OData.Type",
"value": "#microsoft.graph.officeSuiteApp"
Expand Down
41 changes: 41 additions & 0 deletions Documentation/ObjectInfo/#microsoft.graph.deviceHealthScript.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
[
{
"nameResourceKey": "ProactiveRemediations.Create.Settings.DetectionScriptMultiLineTextBox.label",
"descriptionResourceKey": "",
"entityKey": "detectionScriptAdded",
"dataType": 0,
"booleanActions": 109,
"category": "WindowsManagement.scriptsettingsTabHeader"
},
{
"nameResourceKey": "ProactiveRemediations.Create.Settings.RemediationScriptMultiLineTextBox.label",
"descriptionResourceKey": "",
"entityKey": "remediationScriptAdded",
"dataType": 0,
"booleanActions": 109,
"category": "WindowsManagement.scriptsettingsTabHeader"
},
{
"nameResourceKey": "ProactiveRemediations.Create.Settings.LoggedOnCredentialsOptionPicker.label",
"descriptionResourceKey": "",
"entityKey": "useLoggedOnCredentials",
"dataType": 0,
"booleanActions": 109
},
{
"nameResourceKey": "ProactiveRemediations.Create.Settings.EnforceScriptSignatureCheckOptionPicker.label",
"descriptionResourceKey": "",
"entityKey": "enforceSignatureCheck",
"dataType": 0,
"booleanActions": 109

},
{
"nameResourceKey": "ProactiveRemediations.Create.Settings.RunIn64BitPSOptionPicker.label",
"descriptionResourceKey": "",
"entityKey": "runAs32Bit",
"dataType": 0,
"booleanActions": 110

}
]
Binary file modified Documentation/Strings-cs.json
Binary file not shown.
Binary file modified Documentation/Strings-de.json
Binary file not shown.
Binary file modified Documentation/Strings-en.json
Binary file not shown.
Binary file modified Documentation/Strings-es.json
Binary file not shown.
Binary file modified Documentation/Strings-fr.json
Binary file not shown.
Binary file modified Documentation/Strings-hu.json
Binary file not shown.
Binary file modified Documentation/Strings-it.json
Binary file not shown.
Binary file modified Documentation/Strings-ja.json
Binary file not shown.
Binary file modified Documentation/Strings-ko.json
Binary file not shown.
Binary file modified Documentation/Strings-nl.json
Binary file not shown.
Binary file modified Documentation/Strings-pl.json
Binary file not shown.
Binary file modified Documentation/Strings-pt.json
Binary file not shown.
Binary file modified Documentation/Strings-ru.json
Binary file not shown.
Binary file modified Documentation/Strings-sv.json
Binary file not shown.
Binary file modified Documentation/Strings-tr.json
Binary file not shown.
Binary file modified Documentation/Strings-zh-chs.json
Binary file not shown.
Binary file modified Documentation/Strings-zh-cht.json
Binary file not shown.
Binary file modified Documentation/Strings-zh-hans.json
Binary file not shown.
Binary file modified Documentation/Strings-zh-hant.json
Binary file not shown.
Binary file modified Documentation/Strings-zh.json
Binary file not shown.
17 changes: 13 additions & 4 deletions Extensions/Compare.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Objects can be compared based on Properties or Documentatation info.

function Get-ModuleVersion
{
'1.0.6'
'1.0.7'
}

function Invoke-InitializeModule
Expand Down Expand Up @@ -399,8 +399,9 @@ function Invoke-BulkCompareNamedObjects
}
else
{
# Add objects that are exported but deleted
Write-Log "Object '$((Get-GraphObjectName $graphObj.Object $graphObj.ObjectType))' with id $($graphObj.Object.Id) has no matching object with the compate pattern" 2
$sourceObj = Get-GraphObject $graphObj.Object $graphObj.ObjectType
# Add objects that are exported but deleted/not imported etc.
Write-Log "Object '$((Get-GraphObjectName $graphObj.Object $graphObj.ObjectType))' with id $($graphObj.Object.Id) has no matching object with the compare pattern" 2
$compareProperties = @([PSCustomObject]@{
Object1Value = (Get-GraphObjectName $graphObj.Object $graphObj.ObjectType)
Object2Value = $null
Expand Down Expand Up @@ -828,7 +829,15 @@ function Compare-Objects

$script:compareProperties = @()

if($global:cbCompareType.SelectedItem.Compare)
if($obj1.'@OData.Type' -eq "#microsoft.graph.deviceManagementConfigurationPolicy" -or
$obj1.'@OData.Type' -eq "#microsoft.graph.deviceManagementIntent" -or
$obj1.'@OData.Type' -eq "#microsoft.graph.groupPolicyConfiguration")
{
# Always use documentation for Settings Catalog, Endpoint Security and Administrative Template policies
# These use Graph API for docummentation and all properties will be documented
$compareResult = Compare-ObjectsBasedonDocumentation $obj1 $obj2 $objectType
}
elseif($global:cbCompareType.SelectedItem.Compare)
{
$compareResult = & $global:cbCompareType.SelectedItem.Compare $obj1 $obj2 $objectType
}
Expand Down
Loading

0 comments on commit 58abeeb

Please sign in to comment.