Posts

Showing posts from June, 2024

Working with COUNT PowerShell

Image
Working with COUNT in Powershell how to show the values besides string. $logs = Get-WinEvent -ListLog * "There are $( $ logs.count) total event logs on domain" "There are [{0}] total event logs on domain" -f $logs .Count "There are [{0:N0}] total event logs on domain" -f $logs .Count