Fixed issue with installing Intune module
Added support for viewing object info
This commit is contained in:
@@ -100,7 +100,7 @@ function Get-ESPs
|
||||
$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}) -copy ([scriptblock]{Copy-ESP})
|
||||
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles}) -copy ([scriptblock]{Copy-ESP}) -ViewFullObject ([scriptblock]{Get-ESPObject $global:dgObjects.SelectedItem.Object})
|
||||
}
|
||||
|
||||
function Get-ESPObjects
|
||||
@@ -108,6 +108,15 @@ function Get-ESPObjects
|
||||
Get-GraphObjects -Url "/deviceManagement/deviceEnrollmentConfigurations"
|
||||
}
|
||||
|
||||
function Get-ESPObject
|
||||
{
|
||||
param($object, $additional = "")
|
||||
|
||||
if(-not $Object.id) { return }
|
||||
|
||||
Invoke-GraphRequest -Url "/deviceManagement/deviceEnrollmentConfigurations/$($Object.id)$additional"
|
||||
}
|
||||
|
||||
function Export-AllESPs
|
||||
{
|
||||
param($path = "$env:Temp")
|
||||
|
||||
Reference in New Issue
Block a user