r/PowerShell • • May 27 '19

Basic questions

Hi,

I've never used PowerShell yet, I wonder if PowerShell could accomplish those kinds of task:

  1. 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 ?

  2. 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.

0 Upvotes

7 comments sorted by

View all comments

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!

5

u/wahoorider May 27 '19

While I think #1 is a grey area, since it asks for just a user id.. there's not a whole lot of security around that but I'm not familiar with the Power BI login.

I completely agree on #2. /u/zzzzoooo, please consider /u/working_peon's advice. There is a reason IT has those policies in place and they are most likely mandated by your organizations security team. Attempting to circumvent that behavior is most likely a breach of your IT usage policy and could lead to severe repercussions.

2

u/DevinSysAdmin May 28 '19

Intentionally bypassing control measures for security, that’s a’ paddlin’