Powershell script for finding last activity date of user

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3142398%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3EPowershell%20script%20for%20finding%20last%20activity%20date%20of%20user%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3142398%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CP%3EHi%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%3C%2FP%3E%3CP%3EI%20wish%20to%20have%20a%20weekly%20script%20to%20run%20to%20find%20out%20who%20has%20not%20logged%20in%20to%20Microsoft%20Teams%20and%20not%20had%20any%20activity%20for%20last%201%20week.%20how%20to%20find%20this.%20i%20searched%20the%20teams%20usage%20activity%20report%20which%20is%20a%20manual%20thing%20to%20do%20or%20through%20Graph%20api%20where%20they%20are%20on%20demand%20reports%20we%20have%20to%20run%20when%20required.%20but%20what%20i%20need%20is%20to%20have%20this%20as%20a%20script%20to%20check%20teams%20user%20activity%20and%20find%20any%20user%20who%20has%20not%20posted%20any%20activity%20in%20teams%20for%20last%201%20week.%20This%20is%20mainly%20to%20check%20our%20company%20consultants%20who%20abscond%20abruptly%20but%20have%20teams%20licenses%20assigned%20to%20them.%20i%20don't%20want%20a%20longer%20period%20keeping%20the%20licenses%20unused.%20Any%20help%20would%20be%20appreciated.%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3142398%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EPowerShell%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
New Contributor

Hi

 

I wish to have a weekly script to run to find out who has not logged in to Microsoft Teams and not had any activity for last 1 week. how to find this. i searched the teams usage activity report which is a manual thing to do or through Graph api where they are on demand reports we have to run when required. but what i need is to have this as a script to check teams user activity and find any user who has not posted any activity in teams for last 1 week. This is mainly to check our company consultants who abscond abruptly but have teams licenses assigned to them. i don't want a longer period keeping the licenses unused. Any help would be appreciated.

0 Replies