Link to home
Start Free TrialLog in
Avatar of TRAININGBSC
TRAININGBSCFlag for Spain

asked on

BAT or VBS script needed to parse 30 servers for default gateway info

Hi,

Anyone got a bat or vbs script that parses through a list of servers and reports on the ip they have as the default gateway?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of sirbounty
sirbounty
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TRAININGBSC

ASKER

Hi,

Psexec has been disabled at our place. No doubt it would have worked judging by the code and from what I remember of its functionality...
Any other toold that'd pull this off?

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Runs ok.

How about outputting it?
Avatar of JRockSolid
JRockSolid

You should have excell... And it should open excell and place it in a spreadsheet for you
Did it not?
Dang, looking back..... I would take that 8 liner from sirbounty
                                                   
That is some mean batching sir :)  
Thanx - but psexec is disabled in their environment (odd, cause I couldn't live without PSTools! :)