Set-MSTTeamPicture
Teams: Update the picture of a team
#Requires -Version 5.1
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[string]$GroupId,
[Parameter(Mandatory = $true)]
[string]$ImagePath
)
Process {
try {
[hashtable]$cmdArgs = @{'ErrorAction' = 'Stop'; 'GroupId' = $GroupId; 'ImagePath' = $ImagePath}
$null = Set-TeamPicture @cmdArgs
[PSCustomObject]@{
Timestamp = Get-Date -Format 'yyyy-MM-dd HH:mm:ss'
GroupId = $GroupId
ImagePath = $ImagePath
Status = 'Team picture updated'
}
}
catch { throw }
}GroupId of the team
File path of the image (.png, .gif, .jpg, or .jpeg)