I have a script:
$StartDay = (Get-Date).AddDays(-2)
Get-EventLog -LogName application -EntryType Error, Warning -After $StartDay
which I would like to run from my computer (Win XP, PowerShell 1.0) on a Server1 and Server2 (Win 2008, PowerShell 2.0). How can I run this command on these servers?
You must have administrative credentials on remote computer .