Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

PS Script to monitor WinXP remote process...

$
0
0

Hi,

I'm looking for a way to run the execute the script below from a single host, via scheduled task to about 100 remote Win XP SP3 workstations.  I know I can reference a csv file in my script, but I'm not clear on how to inject that information in this particular case...

$programName = "wfica32"

$isRunning = (Get-Process | Where-Object { $_.Name -eq $programName }).Count -gt 0

if ($isRunning)
{ }
else
{ Start-Process C:\temp\down.cmd }

Any help would be appreciated!


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>