This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static string GetString<T>(T obj) | |
{ | |
StringBuilder sb = new StringBuilder(); | |
sb.Append("{"); | |
int iteration = 0; | |
var props = obj.GetType().GetProperties(); | |
foreach (PropertyInfo p in props) | |
{ | |
iteration++; | |
sb.Append(p.Name); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Small script that iterates through all Microsoft Teams teams | |
# and counts the usage of Teams apps using the Office365CLI | |
o365 login -t password -u "%USER_NAME" -p "%PASSWORD%" | |
$availableTeams = o365 teams team list -o json | ConvertFrom-Json | |
if($availableTeams.count -gt 15) | |
{ | |
$duration = [math]::Round(($availableTeams.count/60),1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Using the Office365CLI to list all Teams apps in all Microsoft Teams teams of your tenant | |
o365 login -t password -u "%USER_NAME%" -p "%PASSWORD" | |
$availableTeams = o365 teams team list -o json | ConvertFrom-Json | |
if($availableTeams.count -gt 15) | |
{ | |
$duration = [math]::Round(($availableTeams.count/60),1); | |
Write-Host "Start iterating through" $availableTeams.count "teams. This probably will take around" $duration" minutes to finish." |