Forum / Remote Desktop Manager - Support

Can I run macro/script against a folder?

  • Create an Issue
  • Cancel

We have created folders for each of our branches/sites.

What I want to be able to do is to right-click on a folder (site) and run a macro/script to scan the site's subnet (i.e.: show me all the live hosts).

So, for instance if my site (folder) is called 'City1' and we add 10.11.1.0/24 in the 'custom field 1' for that folder, I want to right-click on 'City1' and initiate a subnet scan on 10.11.1.0/24.

I have tried to create a command prompt macro, which invokes a Windows network scanner tool, but when I then right-click on the site (folder) it asks me which sessions I want to run the macro against? I don't want to run it against sessions, I want to run it against the folder.

Does this make sense? And is this possible? smile

Thanks

Clock3 mths

Hello,
I don't think it's possible with the current architecture that we have. Could you export you macro and we will take a look to see what could be done?

Regards

David Hervieux

signaturesignature

Clock3 mths

Sure, here's the macro I am currently experimenting with:


<?xml version="1.0"?>
<ArrayOfConnection>
<Connection>
<Cmd>
<Arguments>-s -f:range $SITE_CUSTOM_FIELD1$</Arguments>
<UseShellExecute>false</UseShellExecute>
</Cmd>
<Tools>
<Visibility>Hidden</Visibility>
</Tools>
<CommandLine>"C:\Program Files (x86)\Angry IP Scanner\ipscan-win32.exe"</CommandLine>
<ConnectionType>SessionTool</ConnectionType>
<Group>Sites\COMPANYNAME\CITYNAME</Group>
<ID>390bc370-e523-4096-83ce-a964100e6089</ID>
<Image>iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAAu6SURBVFhHzZgLPNTpGsf/gzAokpZKM2NcJkKSS2d1s7kWotxvlZK2tj050nbSbZ3QqtVWq3vtaXWRrXarTVEb0V1KJSQGgxIq3YvM7zx/zZxjHe1uu8757PP5fD8G83mf7/s87/vO+x/mj4aZH5TtFrV+47v6eWNAyrNmlkAiqBPhnZhKTJPhkfSi2XRuW5VgjpQvG67nw3R+6+iVRxqLbzWVS+teVOAu0UA0Ek3EA+IR8Zh4SjwjXhCN9P6Ug813xix5H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ZGRb+B1l0so2v5B7+b6aOvzajzYziaBiVc92FSrdWj0f9wDMZn1GAFiX1OLKirgv3+W+h97bOOzcDKsFIdcoRCM5E1Cgoxw8EZavKKbs6nCK+OU6OHQpHhGtjRg80ahUGG9z+I2I05ZdVYTnKfNYnheLASWoVLoMS2jtqo0EKStXR0/DQanGQbcKYMlTJDhK2MlvAkbYZQRoUnlI3bo0G3XDMNhiuy4c+pKo97RM+8dP3yOVINLYdYcGzM2zluQ9s5jmbtzDATKWNiDIZvCKZfxzo7yGgY+NFyGdCTVes2dMJemYzd3HJjactt6bxy8Rv90Pyzijr2Gyh5OnGGUeedoIevrYwqbxk9pXkwjFBT9kXRe+7S3xmC6DdRYefrW+bX3mm3THyZO3jeS0PZv/4E4QdF0d9fbZtxtf6l/fpnN42ipSNl//lzRL8I6UCrlc+zrNc8FRvHtI6R/fnPE0YL2lwE0W3F/Hltbsxy/H/W1PsE/5M290EfSycbzZP+j76V7xoM8y/DE2MPIxvNEgAAAABJRU5ErkJggg==</Image>
<ImageMD5>7fed033494cc8972b40d2078bab52237</ImageMD5>
<Name>Subnet Scan</Name>
<Stamp>06129c41-59c1-4aee-a5d7-2f1365dbb478</Stamp>
<TemplateSourceID>87f1b07d-2ff8-4797-8a08-831fc8e4aadb</TemplateSourceID>
</Connection>
</ArrayOfConnection>

Clock3 mths

Hello,

Thank you, we'll add this to our todo list. We'll let you know once we have something done.

Regards,

Hubert Mireault

signaturesignature

Clock3 mths