Compare commits

..
4 Commits
Author SHA1 Message Date
Mikael Karlsson 2dc5eca089 Merge branch 'master' of https://github.com/Micke-K/IntuneManagement 2022-10-25 20:28:23 +11:00
Mikael Karlsson 02c162efd3 Updated the version 2022-10-25 20:27:22 +11:00
Mikael Karlsson aae21c3960 Update ReleaseNotes.md 2022-10-24 23:41:21 +11:00
Mikael Karlsson 103b1c2e66 3.7.3 2022-10-24 19:19:30 +11:00
3 changed files with 33 additions and 6 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
RootModule = 'CloudAPIPowerShellManagement.psm1'
# Version number of this module.
ModuleVersion = '3.7.2'
ModuleVersion = '3.7.3'
# Supported PSEditions
# CompatiblePSEditions = @()
+21 -5
View File
@@ -11,7 +11,7 @@ This module is for the Endpoint Manager/Intune View. It manages Export/Import/Co
#>
function Get-ModuleVersion
{
'3.7.2'
'3.7.3'
}
function Invoke-InitializeModule
@@ -449,10 +449,11 @@ function Invoke-InitializeModule
PreImportCommand = { Start-PreImportCommandApplication @args }
DetailExtension = { Add-DetailExtensionApplications @args }
GroupId = "Apps"
ScopeTagsReturnedInList = $false
})
Add-ViewItem (New-Object PSObject -Property @{
Title = "AutoPilot"
Title = "Autopilot"
Id = "AutoPilot"
API = "/deviceManagement/windowsAutopilotDeploymentProfiles"
ViewID = "IntuneGraphAPI"
@@ -639,6 +640,7 @@ function Invoke-InitializeModule
GroupId = "TenantAdmin"
PropertiesToRemoveForUpdate = @('platform')
ExpandAssignmentsList = $false
PropertiesToRemove = @("payloads")
})
Add-ViewItem (New-Object PSObject -Property @{
@@ -2203,7 +2205,7 @@ function Start-PostFileImportAdministrativeTemplate
{
param($obj, $objectType, $file)
$settings = Get-EMSettingsObject $obj $objectType $file -settingsProperty "definitionValues"
$settings = Get-EMSettingsObject $obj $objectType $file -settingsProperty "definitionValues" -SettingsArray
if($settings)
{
$tmpObj = (Get-Content -LiteralPath $file) | ConvertFrom-Json
@@ -2821,7 +2823,7 @@ function Save-EMDefaultPolicy
}
function Get-EMSettingsObject
{
param($obj, $objectType, $file, $settingsProperty = "settings")
param($obj, $objectType, $file, $settingsProperty = "settings", [switch]$SettingsArray)
if($obj.$settingsProperty) { return $obj.$settingsProperty }
@@ -2830,7 +2832,21 @@ function Get-EMSettingsObject
{
# Settings property removed during import so lets try exported file first
$tmpObj = (Get-Content -LiteralPath $fi.FullName) | ConvertFrom-Json
if($tmpObj.$settingsProperty) { return $tmpObj.$settingsProperty }
if($SettingsArray -eq $true)
{
# Only the an array of settings is expected
return $tmpObj.$settingsProperty
}
else
{
if($tmpObj.$settingsProperty)
{
# A property with the an array of settings is expected
return ([PSCustomObject]@{
$settingsProperty = $tmpObj.$settingsProperty
})
}
}
Write-Log "Settings not included in export file. Try import from _Settings.json file" 2
$settingsFile = $fi.DirectoryName + "\" + $fi.BaseName + "_Settings.json"
+11
View File
@@ -1,4 +1,15 @@
# Release Notes
## 3.7.3 - 2022-10-24
**Fixes**
- **Import**<br />
- Fixed a bug where it failed to import Endpoint Security policies<br />
- Fixed an issue where it failed to import Assignment Filters. A new property was added that is not supported during the import<br />
<br />
<br />
## 3.7.2 - 2022-10-08
**New features**