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

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

Rule "Not Clustered o the Cluster Service is up and online. " FAILED, The machine is clustered but the cluster is not online.