Quantcast
Channel: Sysinternals Forums
Viewing all articles
Browse latest Browse all 10386

PsTools : about pipe for Psinfo.exe

$
0
0
Author: rmetzger
Subject: about pipe for Psinfo.exe
Posted: 16 June 2014 at 9:10am

Consider a simple batch file:

@echo off

for %%S in (Server1 Server2 Server3) do (
    echo \\%%S
    psinfo \\%%S 2>NUL | find /i "Uptime"
    echo(
)

Ron Metzger


Edited by rmetzger - 20 hours 23 minutes ago at 9:16am

Viewing all articles
Browse latest Browse all 10386

Trending Articles



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