<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Invoke Powershell-script in SnapManager &amp;quot;run command after operation&amp;quot; in Data Protection</title>
    <link>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13171#M7786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I intend to run a little Powershell script after the Snapmanager job - like we all know, there is that checkbox "run command after operation" to call an external program or script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But pointing to my script triggers no action.&lt;/P&gt;&lt;P&gt;At a second look, this is not surprising much: also when calling it from a DOS-box the syntax is "powershell &amp;lt;path-to-script&amp;gt;".&lt;/P&gt;&lt;P&gt;So I tried pointing to the powershell.exe in %systempath%\windowspowershell\v1.0\ and specify the path to my script as parameter.&lt;/P&gt;&lt;P&gt;But adding the parameter in the line "Specify full path to the program...." together with the powershell.exe-path generates an error "invalid location".&lt;/P&gt;&lt;P&gt;Adding the parameter into the field "Command arguments" results in the error "Invalid command arguments: Unable to find the matched SnapManager variables."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So: anyone got an idea how to invoke a powershell-script in a SnapManager job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2025 07:18:55 GMT</pubDate>
    <dc:creator>mheimberg</dc:creator>
    <dc:date>2025-06-05T07:18:55Z</dc:date>
    <item>
      <title>Invoke Powershell-script in SnapManager "run command after operation"</title>
      <link>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13171#M7786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I intend to run a little Powershell script after the Snapmanager job - like we all know, there is that checkbox "run command after operation" to call an external program or script.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;But pointing to my script triggers no action.&lt;/P&gt;&lt;P&gt;At a second look, this is not surprising much: also when calling it from a DOS-box the syntax is "powershell &amp;lt;path-to-script&amp;gt;".&lt;/P&gt;&lt;P&gt;So I tried pointing to the powershell.exe in %systempath%\windowspowershell\v1.0\ and specify the path to my script as parameter.&lt;/P&gt;&lt;P&gt;But adding the parameter in the line "Specify full path to the program...." together with the powershell.exe-path generates an error "invalid location".&lt;/P&gt;&lt;P&gt;Adding the parameter into the field "Command arguments" results in the error "Invalid command arguments: Unable to find the matched SnapManager variables."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So: anyone got an idea how to invoke a powershell-script in a SnapManager job?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THX&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 07:18:55 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13171#M7786</guid>
      <dc:creator>mheimberg</dc:creator>
      <dc:date>2025-06-05T07:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke Powershell-script in SnapManager "run command after operation"</title>
      <link>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13175#M7787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;powershell.exe -command "&amp;nbsp; my code here "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need the -command parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 17:32:23 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13175#M7787</guid>
      <dc:creator>bsti</dc:creator>
      <dc:date>2012-01-05T17:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Invoke Powershell-script in SnapManager "run command after operation"</title>
      <link>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13178#M7788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;P&gt;I will try it.&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 06:54:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Data-Protection/Invoke-Powershell-script-in-SnapManager-quot-run-command-after-operation-quot/m-p/13178#M7788</guid>
      <dc:creator>mheimberg</dc:creator>
      <dc:date>2012-01-06T06:54:12Z</dc:date>
    </item>
  </channel>
</rss>

