Author Posts

January 1, 2012 at 12:00 am

by megamorf at 2012-10-18 16:27:04

Hello everybody,

I'm trying to automate uploading logfiles to the Citrix Autosupport website. You can upload logfiles for XenDesktop, XenServer, XenApp, NetScaler and it will scan them for hundreds of known issues.

My problem is that I can't get the login button click method to work because there's a lot of javascript involved. The website is and I hope you are able to help me figure out how to do it.

$ie = new-object -com InternetExplorer.Application
while ($ie.Busy -eq $true){Start-Sleep -Milliseconds 1000}
$ie.Document.getElementById("username").value = "mycitrixusername"
$ie.Document.getElementById("password").value = "supersecretpassword"

Here's the login button