OK so everyon that uses lansweeper regularly knows that the dns cache of the lansweeper server can show some assets online that are not actually online, but rather dhcp has reissued that cached ip to another machine. I have actions to tell me if this is the case. I have a couple of options to work around this, one i could run a batch file on a frequent interval from task scheduler on the lansweeper server, i can select the lansweeper server asset and run this action:
cmd.exe /K {actionpath}psexec \\{computer} /c {actionpath}flushdns.bat (which works when on the lansweeper server asset page)
but I would actually like to create an action that specifically targets the lansweeper server. I've tried a few times by changing {computer} to the simple and fqdn name of the lansweeper server.
Any ideas?