Fixed issue with installing Intune module

Added support for viewing object info
This commit is contained in:
Micke
2019-07-03 06:52:59 +10:00
parent 7d357af03e
commit 0cbfc3ae87
15 changed files with 305 additions and 25 deletions

View File

@@ -146,7 +146,7 @@ function Get-Applications
$script:importParams = @{}
$script:importParams.Add("Extension", $importExtension)
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles @script:importParams}) # -copy ([scriptblock]{Copy-Application})
Add-DefaultObjectButtons -export ([scriptblock]{Show-DefaultExportGrid @script:exportParams}) -import ([scriptblock]{Show-DefaultImportGrid -ImportAll $script:importAll -ImportSelected $script:importSelected -GetFiles $script:getImportFiles @script:importParams}) -ViewFullObject ([scriptblock]{Get-ApplicationObject $global:dgObjects.SelectedItem.Object})
}
function Get-ApplicationObjects
@@ -154,6 +154,15 @@ function Get-ApplicationObjects
Get-GraphObjects -Url "/deviceAppManagement/mobileApps?`$filter=(microsoft.graph.managedApp/appAvailability%20eq%20null%20or%20microsoft.graph.managedApp/appAvailability%20eq%20%27lineOfBusiness%27%20or%20isAssigned%20eq%20true)&`$orderby=displayName"
}
function Get-ApplicationObject
{
param($object, $additional = "")
if(-not $Object.id) { return }
Invoke-GraphRequest -Url "/deviceAppManagement/mobileApps/$($Object.id)$additional"
}
function Export-AllApplications
{
param($path = "$env:Temp")