Hi,
I have a couple hundred windows boxes where I only have RDP access (no WMI/NETBIOS access/no SNMP) and trying to find a way to see if they have a file one them. Any suggestions on how to do this?
One idea I have is to login and make/run a batch file like this
for /f "Tokens=2 Delims=[]" %%i in ('ping -n 1 "%computername%"') do set IP=%%i
for /f "Tokens=1 Delims=[]" %%i in ('dir c:\error.log ^| find "error.log"') do set FILE=%%i
echo %IP% %FILE% > c:\output.txt
notepad c:\output.txt
and clipboard copy it into a file on the launching machine. Anyone have tips/suggestions on better way to do this? Only the launching machine will have Macro Scheduler.
Thanks
RDP into machine and finding a file
Moderators: Dorian (MJT support), JRL
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Sounds like a reasonable idea. Use the clipboard to transfer the data so that Macro Scheduler can read it on the calling machine.
Or use image recognition - have the bat file output something on the command line, capture this and have Macro Scheduler look for it.
Or, can you have the remote machine FTP the result file somewhere or copy it to a network share, which Macro Scheduler on the calling machine can then access?
I'm sure there are other solutions that don't require anything to be installed on the remote machine.
Or use image recognition - have the bat file output something on the command line, capture this and have Macro Scheduler look for it.
Or, can you have the remote machine FTP the result file somewhere or copy it to a network share, which Macro Scheduler on the calling machine can then access?
I'm sure there are other solutions that don't require anything to be installed on the remote machine.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
- CyberCitizen
- Automation Wizard
- Posts: 721
- Joined: Sun Jun 20, 2004 7:06 am
- Location: Adelaide, South Australia