ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.
Export REST API results to a .csv file
book
Article ID: 171986
calendar_today
Updated On:
Products
Endpoint Protection
Show More
Show Less
Issue/Introduction
Endpoint Protection (SEP) 14.x
Cause
Unable to export REST API results to a .csv file
Resolution
Create a powershell script
Within your script, add the following line
Invoke-RestMethod -Uri https://<SEPM_IP>:8446/sepm/api/v1/admin-users -Headers $header Export-Csv -c:\temp "data.csv"
NOTE Powershell scripts have the ability to save their results to a .csv file by adding these parameters: Export-Csv -Path "data.csv"
For more information see Microsoft documentation.
Feedback
thumb_up
Yes
thumb_down
No