how capture remote output

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 10 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
roger.fong@hotmail.com
Posts: 2
Last visit: Fri Apr 12, 2013 12:49 pm

how capture remote output

Post by roger.fong@hotmail.com »

Hi!

In a WMI environment,

i try to execute the ipconfig command for example on a remote computer and capture the result on my wokstation but i don't see any ways to get this work.

I don't want to use psexec.

Is somebody can give me any clue....
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how capture remote output

Post by jvierra »

WMI can get that information directly. There is no need for remoting.

Use Win32_NetowrkAdapter and WIn32_NetworkAdapterConfiguration.

You cannot easily remote IPDCONFIG with WMI. It can be don but takes may steps to create a remote file and return the file. WMI was designed to eliminate the need for this kind of thing.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how capture remote output

Post by jvierra »

Here is an example of using WMI to get IPCONFIG information.

This example was auto-generated using the Sapien WMI Wizard.
Attachments
Win32_NetworkAdapterConfiguration.vbs.txt
VBS of WIn32_NetworkAdapterConfiguration
(4.46 KiB) Downloaded 593 times
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: how capture remote output

Post by jvierra »

Roger - one itrem you should address. Don't post your eamil address as you ID. Spam bots will find it and you will be inundated with spam. This site allows annonymous email through the sites so you do not need to divulge your address.
This topic is 10 years and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked