<?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 Setting &amp;quot;show-previous-versions&amp;quot; in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Setting-quot-show-previous-versions-quot/m-p/140526#M5768</link>
    <description>&lt;P&gt;When I originally deployed some sites I would have a powershell script that would set the "show-previous-versions" property of a share using the following line:&lt;/P&gt;
&lt;P&gt;Invoke-NcSsh vserver cifs share properties add -share-name sharename$ -share-properties access-based-enumeration show-previous-versions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However,&lt;/P&gt;
&lt;P&gt;I have some older sites where this was not done, and I was trying to think of an easy way to loop through each share and set this. I have tried a couple things but have had no luck. Even the latest toolkit documentaion does not even show that as a property of "ShareProperties" on the Set-NcCifsSHare commandlet. I tries many different variations of the below syntax...I feel I am missing something simple.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an easy way to do this that I am missing to get this done, but avoid doing it to the normal "admin$,c$ and ipc$" shares?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$shares = Get-NcCifsShare&lt;/P&gt;
&lt;P&gt;foreach ($share in $shares | where $_.sharename -notmatch "$"){Invoke-NcSsh vserver cifs share properties add -share-name $share.shareName -share-properties access-based-enumeration show-previous-versions}&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:40:53 GMT</pubDate>
    <dc:creator>drwoodberry</dc:creator>
    <dc:date>2025-06-04T13:40:53Z</dc:date>
    <item>
      <title>Setting "show-previous-versions"</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Setting-quot-show-previous-versions-quot/m-p/140526#M5768</link>
      <description>&lt;P&gt;When I originally deployed some sites I would have a powershell script that would set the "show-previous-versions" property of a share using the following line:&lt;/P&gt;
&lt;P&gt;Invoke-NcSsh vserver cifs share properties add -share-name sharename$ -share-properties access-based-enumeration show-previous-versions&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However,&lt;/P&gt;
&lt;P&gt;I have some older sites where this was not done, and I was trying to think of an easy way to loop through each share and set this. I have tried a couple things but have had no luck. Even the latest toolkit documentaion does not even show that as a property of "ShareProperties" on the Set-NcCifsSHare commandlet. I tries many different variations of the below syntax...I feel I am missing something simple.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there an easy way to do this that I am missing to get this done, but avoid doing it to the normal "admin$,c$ and ipc$" shares?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$shares = Get-NcCifsShare&lt;/P&gt;
&lt;P&gt;foreach ($share in $shares | where $_.sharename -notmatch "$"){Invoke-NcSsh vserver cifs share properties add -share-name $share.shareName -share-properties access-based-enumeration show-previous-versions}&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:40:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Setting-quot-show-previous-versions-quot/m-p/140526#M5768</guid>
      <dc:creator>drwoodberry</dc:creator>
      <dc:date>2025-06-04T13:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Setting "show-previous-versions"</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Setting-quot-show-previous-versions-quot/m-p/140529#M5769</link>
      <description>&lt;P&gt;You can use the Set-NcCifsShare cmdlet to adjust share properties...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Get-NcCifsShare | %{ 
    if ($_.ShareProperties -notcontains "show_previous_versions" -and $_.ShareName -notin 'admin$','c$','ipc$') {
        $_ | Set-NcCifsShare -ShareProperties ($_.ShareProperties += "show_previous_versions")
    }
}&lt;/PRE&gt;
&lt;P&gt;Hope that helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 16:03:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Setting-quot-show-previous-versions-quot/m-p/140529#M5769</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2018-05-25T16:03:01Z</dc:date>
    </item>
  </channel>
</rss>

