Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get the Policy Assignment for all users in Teams

Status
Not open for further replies.

Sparrow4

Technical User
Jul 12, 2020
67
US
I'm trying to run a command on all my users in Teams.
below is how far I got.

Get-CsUserPolicyAssignment -PolicyType TeamsMeetingPolicy -Identity user@contoso.com

PolicyType PolicyName PolicySource
---------- ---------- ------------
TeamsMeetingPolicy Cloud Recording On {Cloud Recording On}


what is the best way to create a loop on this and have this output instead like below

User PolicyType PolicyName PolicySource
---- ---------- ---------- ------------
user@contoso.com TeamsMeetingPolicy Cloud Recording On {Cloud Recording On}
user1@contoso.com TeamsMeetingPolicy Cloud Recording On {Cloud Recording Off}
user2@contoso.com TeamsMeetingPolicy Cloud Recording On {Cloud Recording On}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top