Fixed issue with installing Intune module
Added support for viewing object info
This commit is contained in:
@@ -125,7 +125,7 @@ function Get-BaselineProfiles
|
||||
$global:lstFiles.ItemsSource = @(Get-JsonFileObjects $global:txtImportPath.Text -Exclude @("*_Settings.json","*_assignments.json"))
|
||||
}
|
||||
|
||||
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles}) -copy ([scriptblock]{Copy-BaselineProfile})
|
||||
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles}) -copy ([scriptblock]{Copy-BaselineProfile}) -ViewFullObject ([scriptblock]{Get-BaselineProfileObject $global:dgObjects.SelectedItem.Object})
|
||||
}
|
||||
|
||||
function Get-BaselineProfileObjects
|
||||
@@ -133,6 +133,18 @@ function Get-BaselineProfileObjects
|
||||
Get-GraphObjects -Url "/deviceManagement/intents"
|
||||
}
|
||||
|
||||
function Get-BaselineProfileObject
|
||||
{
|
||||
param($object, $additional = "")
|
||||
|
||||
if(-not $Object.id) { return }
|
||||
|
||||
$profile = Invoke-GraphRequest -Url "/deviceManagement/intents/$($Object.id)"
|
||||
$settings = Invoke-GraphRequest -Url "/deviceManagement/intents/$($Object.id)/Settings"
|
||||
|
||||
@($profile, $settings)
|
||||
}
|
||||
|
||||
function Export-AllBaselineProfiles
|
||||
{
|
||||
param($path = "$env:Temp")
|
||||
|
||||
Reference in New Issue
Block a user