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 Rest API for Scanning
by  Brian Smith   Go to last post Go to first unread
Last post: Today at 7:35:27 PM(UTC)
Lansweeper Language translation not working anymore
by  Florian  
Go to last post Go to first unread
Last post: Today at 6:03:19 PM(UTC)
Lansweeper Use current user for scanning credentials?
by  pryan67   Go to last post Go to first unread
Last post: Today at 6:01:33 PM(UTC)
Lansweeper Bluetooth Info
by  FrankSc  
Go to last post Go to first unread
Last post: Today at 5:42:59 PM(UTC)
Lansweeper Question about Scanning Assets and Password Encryption
by  FrankSc   Go to last post Go to first unread
Last post: Today at 5:23:05 PM(UTC)
Lansweeper How to enable HTTPS in ver 6.0.150.60
by  Duncan.Miles  
Go to last post Go to first unread
Last post: Today at 1:11:19 PM(UTC)
Lansweeper INFO DateTimeService time refresh
by  miharix   Go to last post Go to first unread
Last post: Yesterday at 3:22:29 PM(UTC)
Lansweeper MS Edge Chromium LanSweeper Extension development
by  Slim D  
Go to last post Go to first unread
Last post: 1/15/2021 11:39:29 AM(UTC)