/build/static/layout/Breadcrumb_cap_w.png

Can I access the files in the Inventory\Devices\DeviceDetail: XXXXX?

Can I access the files in the Inventory\Devices\DeviceDetail: XXXXX?

I would like to be able to link to them outside of browsing.

The links only work when clicked from within the device entry. 

I can only click in that page for any effect.

If I copy the link and paste it, it just loads to a blank white page.

I would like to make using the files uploaded there easier.


Optimally, I would like to use something like:

A script to pull the items that the IT Support can use without loading the web page and browsing to the files.

Being able to pull the items and have it go through the browser without a white page or possibly get it in all one line so we can login and get the file in one.

It would be nice to push something like this from a powershell.

https://KACE_APPLIANCE/common/download_agent_upload.php?ORG_ID=1&MACHINE_ID=###&FILE_NAME=SAMPLE.txt&LOGIN_NAME=$Cred.UserName&LOGIN_PASSWORD=$Cred.Password


0 Comments   [ + ] Show comments

Answers (1)

Posted by: frank.clark@magaero.com 10 months ago
Senior White Belt
0

KACE/QUEST/Anyone:


Can we at least get what info is needed to get the resulting page in "/common/download_agent_upload.php?ORG_ID=#&MACHINE_ID=###&FILE_NAME=Sample.txt" ?


The link only works when given by the device entry page. It gives empty content.

When pulling an invoke-restmethod or invoke-webrequest it fails.


I can get other results and functions to work but pulling from the download_agent_upload.php just gives empty content.


Is there a cookie or something I need to get/post pass along?


$Result
StatusCode        : 200
StatusDescription : OK
Content           :
RawContent        : HTTP/1.1 200 OK
                    Pragma: no-cache
                    X-Content-Type-Options: nosniff
                    X-Frame-Options: sameorigin
                    X-XSS-Protection: 1; mode=block
                    Strict-Transport-Security: max-age=63072000; includeSubDomains; preloa...
Forms             :
Headers           : {[Pragma, no-cache], [X-Content-Type-Options, nosniff], [X-Frame-Options, sameorigin],
                    [X-XSS-Protection, 1; mode=block]...}
Images            : {}
InputFields       : {}
Links             : {}
ParsedHtml        :
RawContentLength  : 0


$Result.RawContent
HTTP/1.1 200 OK
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Frame-Options: sameorigin
X-XSS-Protection: 1; mode=block
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
Access-Control-Allow-Headers: x-kace-auth-timestamp, x-kace-auth-key, x-kace-auth-signature, accept, origin, content-type
Access-Control-Allow-Methods: PUT, DELETE, POST, GET, OPTIONS
X-KACE-Appliance: K1000
X-UA-Compatible: IE=9,EDGE
Cache-Control: no-store, no-cache, must-revalidate,private, no-cache, no-store, proxy-revalidate, no-transform
Date: Sat, 06 May 2023 21:48:48 GMT
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Server: Apache
Content-Security-Policy: script-src 'none'
Content-Length: 0
Content-Type: text/html; charset=utf-8

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ