This file contains 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
#Clearing , Uninstall and Reinstall Teams by Herve MUNYEKU (hmunyeku@gmail.com) | |
#Function to generate a timestamp that is added to the log file | |
function Get-TimeStamp { | |
return "[{0:MM/dd/yy} {0:HH:mm:ss}]" -f (Get-Date) | |
} | |
#Function to generate a log file | |
if ((Test-Path -Path "c:\Temp\Teams" -PathType Container) -ne $true ) {mkdir "c:\Temp\Teams" | Out-Null} | |
$LogFile = "c:\Temp\Teams\Teams.log" |