<?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 Re: Command Syntax error in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99252#M4117</link>
    <description>&lt;P&gt;Figured it out. &amp;nbsp;I stumbled upon a page about escape characters. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/4edbef7e%28v=vs.110%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/4edbef7e%28v=vs.110%29.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially I had to put a series of ' around the charcters telling it that it wasnt a command or argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;Remove-NcSnapshot&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;BLTEntVaultSrv01_Index&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;GMDNASDRC7-VF0'&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="1"&gt;('&lt;/FONT&gt;&lt;FONT color="#800080" face="Lucida Console" size="1"&gt;2017635997'&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="1"&gt;)'&lt;/FONT&gt;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;_BLTEntVaultSrv01_Index.2214&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-VserverContext&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;BLTNASPRD-SVM2&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-confirm:&lt;/FONT&gt;&lt;FONT color="#ff4500" face="Lucida Console" size="1"&gt;$False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jan 2015 18:30:17 GMT</pubDate>
    <dc:creator>mrcwillis</dc:creator>
    <dc:date>2015-01-14T18:30:17Z</dc:date>
    <item>
      <title>Command Syntax error</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99248#M4116</link>
      <description>&lt;P&gt;1st, I'm a horrible scripter and admittedly know nothing but trying to use powershell more and more.&amp;nbsp; However after a Cmode transistion I'm trying to clean up old snapshots.&amp;nbsp; However some of the old snapshots for snapmirrors have (XX) in the name which is throwing an error in Powershell that as a newby I dont know how to fix after an hour of googling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help the noob?&amp;nbsp; I know it has to do with the () however "" or '' doesnt tell it that it is a name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;Remove-NcSnapshot&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;BLTEntVaultSrv01_Index&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;GMDNASDRC7-VF0&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="1"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Lucida Console" size="1"&gt;2017635997&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="1"&gt;)&lt;/FONT&gt;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;_BLTEntVaultSrv01_Index.2214&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-VserverContext&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;BLTNASPRD-SVM2&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-confirm:&lt;/FONT&gt;&lt;FONT color="#ff4500" face="Lucida Console" size="1"&gt;$False &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#f5f5f5" face="Lucida Console" size="1"&gt;And I get back: Remove-NcSnapshot BLTEntVaultSrv01_Index GMDNASDRC7-VF0(2017635997)_BLTEntVaultSrv01_Index.2214 -VserverContext BLTNASPRD-SVM2 -confirm:$False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and I get back:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remove-NcSnapshot : A positional parameter cannot be found that accepts argument '2017635997'.&lt;/P&gt;&lt;P&gt;At line:1 char:1&lt;/P&gt;&lt;P&gt;+ Remove-NcSnapshot BLTEntVaultSrv01_Index GMDNASDRC7-VF0(2017635997)_BLTEntVaultS ...&lt;/P&gt;&lt;P&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;+ CategoryInfo : InvalidArgument: (:) [Remove-NcSnapshot], ParameterBindingException&lt;/P&gt;&lt;P&gt;+ FullyQualifiedErrorId : PositionalParameterNotFound,DataONTAP.C.PowerShell.SDK.Cmdlets.Snapshot.RemoveNcSnapshot&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Help pretty please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:17:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99248#M4116</guid>
      <dc:creator>mrcwillis</dc:creator>
      <dc:date>2025-06-05T05:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Command Syntax error</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99252#M4117</link>
      <description>&lt;P&gt;Figured it out. &amp;nbsp;I stumbled upon a page about escape characters. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/4edbef7e%28v=vs.110%29.aspx"&gt;http://msdn.microsoft.com/en-us/library/4edbef7e%28v=vs.110%29.aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially I had to put a series of ' around the charcters telling it that it wasnt a command or argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Lucida Console" size="1"&gt;Remove-NcSnapshot&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;BLTEntVaultSrv01_Index&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;GMDNASDRC7-VF0'&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="1"&gt;('&lt;/FONT&gt;&lt;FONT color="#800080" face="Lucida Console" size="1"&gt;2017635997'&lt;/FONT&gt;&lt;FONT face="Lucida Console" size="1"&gt;)'&lt;/FONT&gt;&lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;_BLTEntVaultSrv01_Index.2214&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-VserverContext&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console" size="1"&gt;BLTNASPRD-SVM2&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console" size="1"&gt;-confirm:&lt;/FONT&gt;&lt;FONT color="#ff4500" face="Lucida Console" size="1"&gt;$False&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:30:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99252#M4117</guid>
      <dc:creator>mrcwillis</dc:creator>
      <dc:date>2015-01-14T18:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Command Syntax error</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99253#M4118</link>
      <description>&lt;P&gt;&lt;FONT size="2"&gt;well i would have also tried it with "" or '' - but if it's not working i would try to &lt;FONT face="arial,helvetica,sans-serif"&gt;workarround&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;perhaps something like this works:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT color="#0000ff" face="Lucida Console"&gt;Remove-NcSnapshot&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console"&gt;BLTEntVaultSrv01_Index&lt;/FONT&gt; "&lt;FONT color="#8a2be2" face="Lucida Console"&gt;GMDNASDRC7-VF0&lt;/FONT&gt;&lt;FONT face="Lucida Console"&gt;*&lt;/FONT&gt;&lt;FONT color="#8a2be2" face="Lucida Console"&gt;_BLTEntVaultSrv01_Index.2214"&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console"&gt;-VserverContext&lt;/FONT&gt; &lt;FONT color="#8a2be2" face="Lucida Console"&gt;BLTNASPRD-SVM2&lt;/FONT&gt; &lt;FONT color="#000080" face="Lucida Console"&gt;-confirm:&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#ff4500" face="Lucida Console" size="1"&gt;&lt;FONT size="2"&gt;$False&lt;/FONT&gt; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff4500" face="arial,helvetica,sans-serif" size="2"&gt;&lt;FONT color="#000000"&gt;but only as long as you don't have another snapshot which has the same name but diferrent&amp;nbsp;stuff within the brackets - perhaps check that first&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="2"&gt; - otherwhise their also gone&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#000000" size="2"&gt; -whatif is your friend&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;let me know if it worked&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" size="2"&gt;best AJ&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jan 2015 18:33:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Command-Syntax-error/m-p/99253#M4118</guid>
      <dc:creator>HONIG2012</dc:creator>
      <dc:date>2015-01-14T18:33:53Z</dc:date>
    </item>
  </channel>
</rss>

