Logging
Log Manager Utility - Update 20.07.27
· ☕ 1 min read
Flexible clean up and backup of log files Just a small update to add the improved error capturing and reporting that I’ve also put in the Hyper-V Backup Utility. 2020-07-30: Version 20.07.27 Added improved error handling and reporting. Log Manager Utility can also be downloaded from: The Microsoft PowerShell Gallery GitHub See the full documentation available here. Please consider supporting my work: Sign up using Patreon.

Log Manager Utility - Update 20.03.23
· ☕ 1 min read
Flexible clean up and backup of log files A user reported an issue where wildcards would not work with the -LogsPath switch. This was due to me adding incorrect validation to that option. To fix this I have removed the validation and should now accept wildcards as before. Please accept my apologies for this error, it should have been caught during testing but I missed it. I’ll take steps in future to prevent this type of problem from occurring in future.

Log Manager Utility - Update 20.03.11
· ☕ 1 min read
Flexible clean up and backup of log files This is a minor update to my Log Manager Utility - there was a switch alias which was conflicting with a variable and preventing the utility from running correctly. The previous command line switch of -LogPath is now -LogsPath. Version 20.03.11 ‘Cow’ The previous command line switch of -LogPath is now -LogsPath. This fixes an issue with a duplicate variable and switch alias preventing utility from running currently.

Log Manager Utility - Update 20.03.06
· ☕ 1 min read
Flexible clean up and backup of log files I’ve completed a lengthy and much needed overhaul of Log Manager Utility. I’ve added a few new features including one suggested from a user. Please be aware that this new version is not backwards compatible with the previous versions and you will need to reconfigure it before use. 2020-03-09: Version 20.03.06 ‘Fish’ Added custom name for zip file based on user feedback.

E-mail Anywhere In Your PowerShell Scripts
· ☕ 4 min read
In my previous scripts I’ve included a function to send log files to an on-premises Exchange server. I’ve now put together an example script to improve this function to send emails to external e-mail providers, for example: Office 365, Outlook.com or GMail.com. This new code is designed to support many different requirements: No logging at all. Logging but with no e-mail. Logging with e-mail. E-mail with username & password authentication, with SSL.

Log Manager Utility
· ☕ 5 min read
Flexible Clean Up and Backup of Log Files Log Manager Utility can also be downloaded from: The Microsoft PowerShell Gallery GitHub Please consider supporting my work: Sign up using Patreon. Support with a one-time payment using PayPal. If you’d like to contact me, please leave a comment, send me a tweet or DM, or you can join my Discord server. -Mike Features and Requirements The utility will delete files and folders older than X days.

Automating Chatty Maintenance With PowerShell
· ☕ 3 min read
Today’s post is another PowerShell script I wrote with a very specific task in mind. Chatty is a popular chat application for streaming site Twitch.tv. It is generally used for interacting in channel chat rooms as well as logging, running scripts, and live statistics. Some users run it 24/7. One problem that exists is that the logs don’t get separated, even if the program is restarted, the log continues on in the same file.