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
Function Write-Message([String]$Message) { Add-Content -Path YOUR_LOG_FILE.log $Message } | |
Function UserUpdate($reset_logs, $max_users_count, $csvFileName) { | |
# Delete log files if they exist | |
if ($reset_logs -eq $true) { | |
if (Test-Path "*.log") { | |
Remove-Item "*.log" | |
} | |
} |