Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Ok so we use this custom script to take an inventory of the applications installed on a machine.
1. we psexec \\computer name cmd
A.this get us a CMD prmpt from the remote machine
2.then we have our tool or program that takes inventory on the remote machine by placing it VIA backdoor method. then we can execute it because remote cmd VIA psexec .... cmd
3. However the program makes an inventory on the remote c: < directory
4.then we have to bacjkdoor again to get the file.Is there anyway pstools or a redirect command send the .txt document over the netwrok to the computer techs desktop ?
Like you can ipconfig > ipconfig.txt
it will send the ipconfig results to ipconfig.txt. Say i wanted to redirect it over the netwrok like ipconfig.txt >192.168.1.1something to that nature ?
can i?
i have tried by hostname and ip but nothign so far anyone get the concept of what im trying to do ?Learning in progress..........

You can if you set up a shared folder and put the file in there with the format:
\\192.168.1.1\sharedfolder\ipconfig.txt
Notice the double back slahes at the beginning. That's the important bit. Tells Windows to look for the address on the LAN otherwise it will default to http which is not what you want.
Stuart

I understand that but
\\192.168.1.1\sharedfolder\ipconfig.txti want to ipconfig > ipconfigresults.txt >\\192.168.1.1\sharedfolder\ipconfig.txt
Which will not workIm trying to redirect to a .txt and then redirect the entire .txt file accross the network i mean could i do this with a net send or something?
I dont want nor need a file share althogh i do appreciate your suggestion
Learning in progress..........

Try this.
ipconfig > \\192.168.1.1\sharedfolder\ipconfig.txt
You a redirecting the output of ipconfig to the receiving computer without an intermediary file.
You are going to need some kind of shared space on the receiving computer to receive the file whichever method you use. The only other way is to set up an FTP server and thats a bit of overkill.
Stuart

call a batch file from the users logon script
assumes you map a drive to the users home folderc:
ipconfig >[mapped drive home folder]config.txt
other commands >> [users home folder map]config.txtDo a search for config.txt from all users home folders and cut them from there to where you want them
> redirects the output to the file
>> appends output to the file

call a batch file from the users logon script
assumes you map a drive to the users home folderc:
ipconfig >[mapped drive home folder]config.txt
other commands >> [users home folder map]config.txtDo a search for config.txt from all users home folders and cut them from there to where you want them
Well this would work however im trying to run everything in the background you see. I dont want to have to make shared folders on my now the customers PC in fact the reason we do this is because the computer is up for refresh. In that i mean its old we are taking an inventory of thier apps currently installed in order to setup a new PC for them exactly the same so folder sharing is sort of out of the picture :( good idea though well actually now that i think of it that might work like this we would do sort of like ipconfig but the app is called quickaudit then the file would be placed on the root c: but i could call quickaudit then have it > to a public drive shared by all accross the network. Like its a universal shared network drive so its already mapped on the users PC so for example its called u: drive
i could
quickaudit.exe > u:/tempThen on my system i could have a mapped right to u:/temp folder that exist so really would this work?
Learning in progress..........

![]() |
Is my motherboard fried?
|
web page not opening
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |