โ09-25-2023 07:02 AM
Hi everybody,
I'd like to know if there is a way and/or script using Powershell Module to export the device details like Vendor, Model, Serial, ecc... for the whole devices, instead doing and export one by one.
Many thanks
Dario Vernelli
Solved! Go to Solution.
โ09-27-2023 06:25 AM
This is what I've got so far. It'll give you all the key value pairs for the endpoint I shared earlier. It's very basic but feel free to upgrade from here ๐
$headers=@{
'x-org-id' = 'YOUR ORG ID'
'x-api-key' = 'YOUR API KEY'
}
$response = Invoke-RestMethod -Uri 'https://console.jumpcloud.com/api/v2/systeminsights/system_info' -Method GET -Headers $headers
$response | Out-File -FilePath ADDFILEPATH/response.txt
I was able to get the data for all of my test devices with this. Hope it helps!
โ09-27-2023 05:30 AM
I couldn't find a powershell command to do it but you could embed this API endpoint into a powershell script: https://docs.jumpcloud.com/api/2.0/index.html#tag/System-Insights/operation/systeminsights_list_syst...
I'm playing around with it also but I'm a powershell beginner and don't want to slow you down haha ๐
Hope this helps ๐
โ09-27-2023 05:42 AM
Hi @urvashi ,
thanks a lot for your tip..... I'm also a newbie on powershell, but somehow I'll find how to create a script and use the API.
many thanks ๐ค
โ09-27-2023 06:25 AM
This is what I've got so far. It'll give you all the key value pairs for the endpoint I shared earlier. It's very basic but feel free to upgrade from here ๐
$headers=@{
'x-org-id' = 'YOUR ORG ID'
'x-api-key' = 'YOUR API KEY'
}
$response = Invoke-RestMethod -Uri 'https://console.jumpcloud.com/api/v2/systeminsights/system_info' -Method GET -Headers $headers
$response | Out-File -FilePath ADDFILEPATH/response.txt
I was able to get the data for all of my test devices with this. Hope it helps!
โ09-27-2023 06:31 AM
uh, many many thanks.
I'll try asap
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.