3.1.5
This commit is contained in:
@@ -11,7 +11,7 @@ Objects can be compared based on Properties or Documentatation info.
|
||||
|
||||
function Get-ModuleVersion
|
||||
{
|
||||
'1.0.2'
|
||||
'1.0.3'
|
||||
}
|
||||
|
||||
function Invoke-InitializeModule
|
||||
@@ -695,14 +695,17 @@ function Show-CompareForm
|
||||
if($global:txtIntuneObject.Tag.ObjectType)
|
||||
{
|
||||
$objectTypePath = [IO.Path]::Combine($path, $global:txtIntuneObject.Tag.ObjectType.Id)
|
||||
if([IO.Direcotry]::Exists($objectTypePath))
|
||||
if([IO.Directory]::Exists($objectTypePath))
|
||||
{
|
||||
$path = $objectTypePath
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$path = (?: ($global:lastCompareFile -eq $null) $path ([IO.FileInfo]$global:lastCompareFile).DirectoryName)
|
||||
if([String]::IsNullOrEmpty($global:lastCompareFile) -eq $false)
|
||||
{
|
||||
$path = ([IO.FileInfo]$global:lastCompareFile).DirectoryName
|
||||
}
|
||||
|
||||
$of = [System.Windows.Forms.OpenFileDialog]::new()
|
||||
$of.Multiselect = $false
|
||||
@@ -711,7 +714,7 @@ function Show-CompareForm
|
||||
{
|
||||
$of.InitialDirectory = $path
|
||||
}
|
||||
|
||||
|
||||
if($of.ShowDialog())
|
||||
{
|
||||
Set-XamlProperty $script:cmpForm "txtCompareFile" "Text" $of.FileName
|
||||
|
||||
@@ -10,7 +10,7 @@ This module is for the Endpoint Manager/Intune View. It manages Export/Import/Co
|
||||
#>
|
||||
function Get-ModuleVersion
|
||||
{
|
||||
'3.1.4'
|
||||
'3.1.5'
|
||||
}
|
||||
|
||||
function Invoke-InitializeModule
|
||||
@@ -253,6 +253,7 @@ function Invoke-InitializeModule
|
||||
PostCopyCommand = { Start-PostCopyAdministrativeTemplate @args }
|
||||
PostFileImportCommand = { Start-PostFileImportAdministrativeTemplate @args }
|
||||
LoadObject = { Start-LoadAdministrativeTemplate @args }
|
||||
PropertiesToRemove = @("definitionValues")
|
||||
Permissons=@("DeviceManagementConfiguration.ReadWrite.All")
|
||||
Icon="DeviceConfiguration"
|
||||
GroupId = "DeviceConfiguration"
|
||||
@@ -1440,7 +1441,20 @@ function Start-LoadAdministrativeTemplate
|
||||
|
||||
$obj = Get-Content $fi.FullName | ConvertFrom-Json
|
||||
|
||||
return $obj
|
||||
if($obj.definitionValues)
|
||||
{
|
||||
return $obj
|
||||
}
|
||||
|
||||
$settingsFile = $fi.DirectoryName + "\" + $fi.BaseName + "_Settings.json"
|
||||
|
||||
if([IO.File]::Exists($settingsFile))
|
||||
{
|
||||
$definitionValues = Get-Content $settingsFile | ConvertFrom-Json
|
||||
|
||||
$obj | Add-Member Noteproperty -Name "definitionValues" -Value $definitionValues -Force
|
||||
}
|
||||
$obj
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
# Release Notes
|
||||
|
||||
## 3.1.5 - 2021-07-06
|
||||
|
||||
**Fixes**
|
||||
|
||||
* Fixed rushed update for [Issue 18](https://github.com/Micke-K/IntuneManagement/issues/18)
|
||||
* Fixed bug in Compare module
|
||||
|
||||
## 3.1.4 - 2021-07-06
|
||||
|
||||
**Fixes**
|
||||
|
||||
Reference in New Issue
Block a user