get-date

PowerShell Tip of the Week: Get name of a month and number of days

Recently I was working on a new report for entire environment. I had to calculate servers total uptime and downtime in previous month. I prepared script for that and one of the tasks was to check what was previous month name and number of days. Name of a month Concept of uptime report was that script will gather start/stop/crash information from eventlog and calculate time between of those events. It …