Hi
Is there a way of exporting/finding out (without clicking them one by one) which app has been assigned to which group etc. I want to keep a record to show certain members of staff.
Hi
Is there a way of exporting/finding out (without clicking them one by one) which app has been assigned to which group etc. I want to keep a record to show certain members of staff.
Best answer by BGSICTSupport
I've managed to solve this with a powershell script. (below for anyone that would like it)
Script+UnderlinedText+
$FormatEnumerationLimit = -1
$cred = get-credential
$i = 0
$uri = 'https://CASPERSERVERADDRESS:8443/JSSResource/mobiledeviceapplications/id/'
$devices = @()
Do {$i += 1
Try {
$data = Invoke-restmethod -Method Get -Uri $uri$i -Credential $cred
$a = $data.mobile_device_application.general.display_name $b = $data.mobile_device_application.scope.all_jss_users $c = $data.mobile_device_application.scope.all_mobile_devices $d = $data.mobile_device_application.scope.limit_to_users.user_groups $e = $data.mobile_device_application.scope.exclusions.user_groups $f = $data.mobile_device_application.scope.exclusions.departments
$device = New-Object PsObject -Property @{ DisplayName = $a AllJSSUSers = $b ALLMobileDevices = $c LimitToUsers = (@($d) -Join ",") Exclusions = (@($e) -join ",") }
$device
}
Catch { Write-Host "There was a problem with " $i }
}
while ($i -le 150)
Then I ran the following command to run the script and to save it
.Test.ps1 | Select-Object -Property DisplayName,AllJSSUsers,AllMobileDevices,LimitToUsers,Exclusions | Export-csv .iPadScopedApps2016-11.csv
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.