Skip to content

Instantly share code, notes, and snippets.

@brettmillerb
Created February 9, 2019 21:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save brettmillerb/94f07bb41d34c01cd08477184e8ccb84 to your computer and use it in GitHub Desktop.
function Get-MsTeamsGroupId {
[CmdletBinding()]
param (
[Parameter(Mandatory=$true,
Position=0,
ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true)]
[ValidateNotNullOrEmpty()]
[string]
$TeamName
)
process {
Get-Team | Where-Object displayname -like "*$TeamName*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment