Fixed issue with installing Intune module
Added support for viewing object info
This commit is contained in:
@@ -99,7 +99,7 @@ function Get-MDMMAM
|
||||
$global:lstFiles.ItemsSource = @(Get-JsonFileObjects $global:txtImportPath.Text -Exclude "*_Settings.json")
|
||||
}
|
||||
|
||||
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles})
|
||||
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles}) -ViewFullObject ([scriptblock]{Get-MDMMAMObject $global:dgObjects.SelectedItem.Object})
|
||||
}
|
||||
|
||||
function Get-MDMMAMObjects
|
||||
@@ -107,6 +107,15 @@ function Get-MDMMAMObjects
|
||||
Get-AzureNativeObjects "MdmApplications" -property @('appDisplayName')
|
||||
}
|
||||
|
||||
function Get-MDMMAMObject
|
||||
{
|
||||
param($object, $additional = "")
|
||||
|
||||
if(-not $Object.objectId) { return }
|
||||
|
||||
Invoke-AzureNativeRequest "/MdmApplications/$($Object.objectId)$additional"
|
||||
}
|
||||
|
||||
function Export-AllMDMMAM
|
||||
{
|
||||
param($path = "$env:Temp")
|
||||
|
||||
Reference in New Issue
Block a user