Skip to content

Geoff Nelson

Active Directory, Splunk, and Windows Systems Management

Category: PowerShell

Ensure Your Array is an Array

I was working on a PowerShell script that pulls errors out of the Event Log into an array from a list of servers.  The script will then report the errors for each server, or will report that no errors were found, as seen in a condensed version of the script below: $events = Get-EventLog -Computer $ComputerName… Continue reading Ensure Your Array is an Array

Published 11 March 2011
Categorized as PowerShell, System Administration
Geoff Nelson
Proudly powered by WordPress.