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: 409  
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 LSAgent Rescan Asset
by  marck1024   Go to last post Go to first unread
Last post: Today at 4:11:53 PM(UTC)
Lansweeper Allowing a role to create asset groups
by  mh6543   Go to last post Go to first unread
Last post: 2/26/2021 10:00:40 PM(UTC)
Lansweeper Export LsAgent Assets
by  steveb  
Go to last post Go to first unread
Last post: 2/26/2021 7:26:32 PM(UTC)
Lansweeper Asset Uptime "Asset on total"
by  Andy.S   Go to last post Go to first unread
Last post: 2/26/2021 3:07:35 PM(UTC)
Lansweeper Scanning for Static Routes?
by  ChrisParr  
Go to last post Go to first unread
Last post: 2/26/2021 12:43:28 PM(UTC)
Lansweeper lansweeperuser sql database permissions
by  David K.   Go to last post Go to first unread
Last post: 2/25/2021 11:54:38 PM(UTC)
Lansweeper Scanning certificates
by  Vincent Pollock  
Go to last post Go to first unread
Last post: 2/25/2021 8:35:11 PM(UTC)