I am having really difficult time doing this and hoping that someone already did something similar and can get me through this "wall" in front of me.
I have various consoles that I am working with and my goal is to schedule a task that Exports reports from these vendors and send them in an email or save them to the drive.
The vendor web consoles I am working with are Trend Micro and Bit9.
In both cases, I am not able to authenticate using invoke-webrequest (unless I am authenticated and just can't tell)
The only way so far, was to use InternetExplorer.Application. This way, I am able to navigate all the way to the "Export" button, but it pulls up a dialog to Save/Save As and requires manual intervention and IE must be visible (this defeats my scheduled task requirement)
Below is my code for IE
$URI = "https://SERVER:4343/officescan/console/html/cgi/cgiChkMasterPwd.exe"
$UserName = $doc.getElementById('UserName')
$UserName.value = 'UserName'
My code using Invoke-WebRequest
#$creds = Get-Credential
Thank you Dave,
it looks to me that with SeleriumHQ I would be forced to have the browser window open and therefore I cant have these exports run in the background...
Unless there is something I've missed...
You must be logged in to reply to this topic.