$users =(Get-Group "SelectedUsersGroup").members
$users |Get-Recipient | select-object aprimarysmtpaddress |Export-Csv c:\temp\userlist.csv
Then I have to manually format the userlist.csv remove the white spaces, etc. and run the below command
import-csv userlist.csv | %{Grant-CsTeamsVideoInteropServicePolicy -PolicyName PolycomServiceProviderEnabled -Identity $_.PrimarySmtpAddress}
Looking for some help on scripting in which I dont have to export to .csv rather combine line 2 and 3
Thanks for your suggestions.