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