<?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: Powershell Read-ncfile cant find file in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171072#M6467</link>
    <description>&lt;P&gt;I did a Get-NcFile for the two files.&amp;nbsp; The command-history.log is a symbolic link while the vifmgr.log is an actual file.&amp;nbsp; Looks like Read-NcFile only works for the actual file paths and doesn't support symbolic links.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="readncfile.jpg" style="width: 958px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/12238i608FCEF9DFC35078/image-size/large?v=v2&amp;amp;px=999" role="button" title="readncfile.jpg" alt="readncfile.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A workaround might be to go through the SPI interface (&lt;A href="https://{clusterip}/spi" target="_blank"&gt;https://{clusterip}/spi&lt;/A&gt;) using Invoke-WebRequest or Invoke-RestMethod.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Oct 2021 18:08:00 GMT</pubDate>
    <dc:creator>JohnChampion</dc:creator>
    <dc:date>2021-10-23T18:08:00Z</dc:date>
    <item>
      <title>Powershell Read-ncfile cant find file</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171046#M6465</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping someone could help me.&lt;/P&gt;&lt;P&gt;I'm trying to run the powershell command Read-ncfile and get the command-history.log but the command fails with can't find file.&lt;/P&gt;&lt;P&gt;For exampel i run the following which fails&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Read-NcFile -Path /vol/vol0/etc/log/mlog/command-history.log -VserverContext Cluster1-Node1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the following command does not fail&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Read-NcFile -Path /vol/vol0/etc/log/mlog/vifmgr.log -VserverContext Cluster1-Node1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;from what I'v tried it only fails when there is a "-" character in the name of the file.&amp;nbsp; I'v tried adding a escape character like / or ` but it does not make any difference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone got any ideas?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:10:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171046#M6465</guid>
      <dc:creator>drydholm</dc:creator>
      <dc:date>2025-06-04T10:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Read-ncfile cant find file</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171072#M6467</link>
      <description>&lt;P&gt;I did a Get-NcFile for the two files.&amp;nbsp; The command-history.log is a symbolic link while the vifmgr.log is an actual file.&amp;nbsp; Looks like Read-NcFile only works for the actual file paths and doesn't support symbolic links.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="readncfile.jpg" style="width: 958px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/12238i608FCEF9DFC35078/image-size/large?v=v2&amp;amp;px=999" role="button" title="readncfile.jpg" alt="readncfile.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;A workaround might be to go through the SPI interface (&lt;A href="https://{clusterip}/spi" target="_blank"&gt;https://{clusterip}/spi&lt;/A&gt;) using Invoke-WebRequest or Invoke-RestMethod.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 18:08:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171072#M6467</guid>
      <dc:creator>JohnChampion</dc:creator>
      <dc:date>2021-10-23T18:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell Read-ncfile cant find file</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171322#M6471</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;JohnChampion,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did a invoke-WebRequest and it worked great. Thanks for the help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Nov 2021 08:11:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Powershell-Read-ncfile-cant-find-file/m-p/171322#M6471</guid>
      <dc:creator>drydholm</dc:creator>
      <dc:date>2021-11-02T08:11:34Z</dc:date>
    </item>
  </channel>
</rss>

