Notification

Icon
Error

Authenticate from CLI - Need to print multiple web reports from a batch file

Posted: Monday, November 23, 2020 9:57:04 PM(UTC)
blunderdog

blunderdog

Member Original PosterPosts: 3
0
Like
I need to generate PDF copies of the reports generated on the report tab of an asset. By finding the AssetIDs of a 50 assets, I can manually create a list of urls similar to "https://lansweeper.mydomain.com:82/reportdet.aspx?AssetID=9916&print=1". I can read this list in as a .csv file to wkhtmltopdf. This is a utility that will generate a single PDF from all the urls in the csv.

Unfortunately, the command line passes the correct info but fails because authentication is required. I've tried passing my domain credentials using --username --password but authentication always fails.

Anyone have a potential solution.
CyberCitizen
#1CyberCitizen Member Posts: 400  
posted: 12/11/2020 12:44:46 AM(UTC)
Originally Posted by: blunderdog Go to Quoted Post
I need to generate PDF copies of the reports generated on the report tab of an asset. By finding the AssetIDs of a 50 assets, I can manually create a list of urls similar to "https://lansweeper.mydomain.com:82/reportdet.aspx?AssetID=9916&print=1". I can read this list in as a .csv file to wkhtmltopdf. This is a utility that will generate a single PDF from all the urls in the csv.

Unfortunately, the command line passes the correct info but fails because authentication is required. I've tried passing my domain credentials using --username --password but authentication always fails.

Anyone have a potential solution.


Are you passing the domain credentials as well eg --username DOMAIN\TestUser

Active Discussions

Lansweeper LanSweeper Reports - merge
by  NDR88   Go to last post Go to first unread
Last post: 1/14/2021 7:41:25 PM(UTC)
Lansweeper Duplicate computers in Webcam query
by  RC62N  
Go to last post Go to first unread
Last post: 1/14/2021 4:36:50 PM(UTC)
Lansweeper Performance REPORT:AVERAGE CPU, RAM & DISK USAGE IN %
by  MassimoAfros   Go to last post Go to first unread
Last post: 1/13/2021 3:57:47 PM(UTC)
Lansweeper Virtual Guest machines report- Add guest OS
by  Andy.S  
Go to last post Go to first unread
Last post: 1/12/2021 9:22:54 AM(UTC)
Lansweeper Print Last OU instead of Full OU
by  RC62N   Go to last post Go to first unread
Last post: 1/11/2021 10:08:39 PM(UTC)
Lansweeper Help Desk with Root Cause
by  Daniel B  
Go to last post Go to first unread
Last post: 1/5/2021 5:57:53 PM(UTC)
Report Center Show newly discovered software
by  dpjhoward  
Go to last post Go to first unread
Last post: 12/16/2020 10:15:05 PM(UTC)