Working with COUNT PowerShell

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

Comments

Popular posts from this blog

Always On FailOver Events

The transaction log for database is full due to 'OLDEST_PAGE'

SSAS Cube or Database backup with Powershell command "Backup-AsDatabase"