<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Deleting files script]]></title><description><![CDATA[<p dir="auto">Is that possible to run the script from netxms to delete downloads folder (files inside downloads) in windows server 2012 ?</p>
]]></description><link>https://forum.netxms.org/topic/4429/deleting-files-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:44:30 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/4429.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 20 Apr 2016 08:26:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Deleting files script on Fri, 22 Apr 2016 08:19:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm suppose ~ in ~\Downloads\ refers to home directory of the user - but if you run agent as a service it by default runs under local system account, so ~ points to completely different place.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19734</link><guid isPermaLink="true">https://forum.netxms.org/post/19734</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 22 Apr 2016 08:19:37 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting files script on Fri, 22 Apr 2016 07:46:04 GMT]]></title><description><![CDATA[<p dir="auto">Ok i'm using powershell with command:</p>
<p dir="auto">ActionShellExec=cleandownloads:powershell -command "&amp; ls ~\Downloads\ | remove-item -force -recurse"<br />
and this command not working from netxms but working in powershell</p>
<p dir="auto">i have too<br />
ActionShellExec=cleantemp:powershell -command "&amp; ls C:\Windows\TEMP\ | remove-item -force -recurse"<br />
and this commands works fine form powershell and from agent</p>
<p dir="auto">any ideas?</p>
]]></description><link>https://forum.netxms.org/post/19733</link><guid isPermaLink="true">https://forum.netxms.org/post/19733</guid><dc:creator><![CDATA[dersonik]]></dc:creator><pubDate>Fri, 22 Apr 2016 07:46:04 GMT</pubDate></item><item><title><![CDATA[Reply to Deleting files script on Thu, 21 Apr 2016 13:28:56 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">yes, you can define action in agent (using Action or ActionShellExec entries in nxagentd.conf) and then define object tool to run it manually or server side action of type "execute action on remote agent" to run it automatically from event processing policy.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/19715</link><guid isPermaLink="true">https://forum.netxms.org/post/19715</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 21 Apr 2016 13:28:56 GMT</pubDate></item></channel></rss>