Templates Tagged "wscript"

template icon

Run a program as a specific user...

February 16, 2012Launch files as a specific user. Sample: set WshShell = WScript.CreateObject("WScript.Shell") WshShell.run "runas /user:Administrator ""C:\Program Files\Internet Explorer\iexplore.exe""" 'Open command prompt WScript.Sleep(1000) WshShell.SendKeys("AdminPassword") 'send password WshShell.SendKeys("{ENTER}") 'send enter keystroke WScript.Sleep(1000) set wshshell = Nothing Launches IE as a Administrator.
template icon

Refresh Browser for IE Citrix Session

February 16, 2012So I've been working on a development project for a client, and doing all of the development remotely. The issue I've been having is with their Citrix environment, I've launched Citrix from an IE8 browser and after a period of 30 minutes or so the remote session will die and the Citrix session will be gone due to inactivity. If ...