cancel
Showing results for 
Search instead for 
Did you mean: 

export device overview fields

dariovernelli
Novitiate III

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

 

 

1 ACCEPTED SOLUTION

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! 

View solution in original post

4 REPLIES 4

urvashi
Community Manager Community Manager
Community Manager

Hi @dariovernelli 

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 🙂

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 🤙

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! 

uh, many many thanks.

I'll try asap