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
05-25-2024 11:05 AM
Hi Team,
cleanup activity i need to pull export data with Name, email ID , Hostname, Serial number , list application install on system
I try Below Command but it's do not provide User details.
Get-JCSystemApp -SystemOS windows | ConvertTo-Csv | Out-File -FilePath "/Users/rahulsoni/Downloads/windowsapps.csv"
05-27-2024 09:30 AM
Hi @rahulsoni there's a different cmdlet for user information. You can use this instead:
06-06-2024 10:33 AM - edited 06-06-2024 10:33 AM
For cleanup activity Can help me how to uninstall below application from user system.
05-27-2024 11:09 PM
Hey
You can also explore this script and customize it to your needs:
https://community.jumpcloud.com/t5/community-scripts/powershell-function-get-systemreport-with-detai...
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.