r/PowerShell • u/zzzzoooo • May 27 '19
Basic questions
Hi,
I've never used PowerShell yet, I wonder if PowerShell could accomplish those kinds of task:
I have an application (Gateway for Power BI) that requires a login every single time. It simply asks for the organization email. Do you think that PowerShell could automate that process, i.e. launching the 'Gateway' app and enter my email, then click 'Next', then click on my pop-up profile ? Can PowerShell simulate the mouse click ?
The Windows of my firm automatically logs out after about 15 minutes of inactivity. Can PowerShell do some kind of insignificant 'activity' so Windows isn't logged out ? Something like....every 10 minutes, Powershell does something to make Windows believing that we are still active, thus not logging me off.
Thank you very much for your help.
10
u/working_peon May 27 '19
Not an answer, sorry, but both is very irresponsible regarding security and privacy. Also your sysadmin will probably kill you if you run such a script, and you even could get fired for that (it's the companys computer, and those logout rules are there for a reason).
As a sysadmin myself i have to say: Please consider dropping that plan!