Browse Forum Posts by Tags

Showing related tags and posts for the Learn PowerShell forum. See all tags in the site
  • for each help

    This works great : foreach ($server in $ServerList) {$server; get-winevent -computername $server -Credential $Creds -FilterHashTable @{ logname = "application","system"; StartTime = (get-date).AddDays(-$Past); Level= 2,3}| ConvertTo-Html -Property LevelDisplayName, ID, ProviderName...
    Posted to Learn PowerShell (Forum) by Brad Call on 01-26-2011
    Filed under: event logs, for each
  • A seperate issue with Foreach loops and Eventlogs

    This script should have three nested loops. the first is a loop through all computers from a list the second is a loop through all eventlogs on a computer the third loop writes each event from each eventlog to SQL table. I assume using functions is a better practice. That may be/probably is related to...
    Posted to Learn PowerShell (Forum) by Brett.Osiewicz on 02-11-2011
    Filed under: event logs, for each
Page 1 of 1 (2 items)
Copyright 2012 PowerShell.com. All rights reserved.