Does a .log extension file deletes older entries automatically? (Poweshell Add-Content)
I have a powershell script that creates a log file in a network share and then writes on it (also mapping network drives) whenever the user logs in, it’s deployed by GPO. I created two functions to create the log and to write on it, here they are: