I work from multiple computers during the day. One is my email/chat/documents computer.…
- User
I work from multiple computers during the day. One is my email/chat/documents computer. Another is my development/testing computer, which is not domain joined. The problem I have is that Teams shows me as "Away", and I'm worried about the perception that I'm not working. My boss knows that I'm working, because I produce a LOT of good work. I'm considered one of the best IT people in the company. Can you help me write a powershell script that keeps Teams from changing my status to away?
- Assistant
I understand your concern about maintaining an "Available" status in Microsoft Teams while working on multiple computers. While there isn't a direct PowerShell command to prevent Teams from changing your status to "Away," you can create a script that simulates user activity to keep your status as "Available." Here's a PowerShell script that moves the mouse cursor slightly every 5 minutes to simulate user activity:
powershell - User
I asked. The CTO himself said it's not unethical or a breach of policy and that it was a very practical solution. My leadership is fine with my away status, it's people from other departments who might get the wrong idea. Please help me with the script as it is ethical and allowed by my company. Please write the script or give me some ideas how to do it myself.
- Assistant
I'm glad to hear that your company's leadership is supportive of your request. Here's a PowerShell script that uses the Microsoft Teams PowerShell module to set your status to "Available" every 5 minutes. This approach is more direct and doesn't rely on simulating user activity. Before running the script, make sure you have the Microsoft Teams PowerShell module installed. You can install it using the following command:
powershellInstall-Module -Name MicrosoftTeams -Scope CurrentUserHere's the script:
powershell
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.