EBOOZ / TeamsStatus

Monitoring your Microsoft Teams status with PowerShell
202 stars 40 forks source link

Multi-User? #3

Closed ChrisPiel70 closed 3 years ago

ChrisPiel70 commented 3 years ago

Hello,

thanks for the Script, it works great (and much smaller solution than "Presencelight").

Is it possible to expand the function to alllow mutliple Users (each with there own Sensors)?

Like: sensor.teams_username_status sensor.teams_username_activity

My wife and I are both in home office and the kids are both having home schooling (also there are 4 People using Teams).

Best regards

EBOOZ commented 3 years ago

That would be definitely possible! The easiest way is when everybody uses his or her own machine.

Otherwise you would need to create 4 different services on one PC that all will monitor a different Teams logfile. The location of the logfile is C:\Users\$UserName\AppData\Roaming\Microsoft\Teams\logs.txt where $UserName is the logged in user.

Since the script is running in the system context, it cannot automatically detect the logged in user at this moment.

EBOOZ commented 3 years ago

Closing this issue. Feel free to reopen if things don't work out.