<?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  windows share creation automation in General Discussion</title>
    <link>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/441021#M1463</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;apparently you have to answer your own questions here. What a pity.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2023 14:15:15 GMT</pubDate>
    <dc:creator>Akromat_Eichler</dc:creator>
    <dc:date>2023-01-19T14:15:15Z</dc:date>
    <item>
      <title>PowerShell  windows share creation automation</title>
      <link>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/147484#M354</link>
      <description>&lt;P&gt;Folks,&lt;/P&gt;
&lt;P&gt;Please, could anyone share an example&amp;nbsp;PowerShell command syntax or script snip on how to automate creating CIFS shares for CDOT?&amp;nbsp; We need to migrate 2008 user's shares to new FAS, but the problem we have more than a 1000 old users that still have&amp;nbsp;hidden user shares and must be preserved, (dont' ask, its a requirement :)).&amp;nbsp; Data migration is done via robocopy&amp;nbsp;and we&amp;nbsp;have .csv with users name folder path on netapp and appropriate usershare$. It would nice to automate the process when the script reads the input file line by line and creates a corresponding share$ with everyone access permission for it.&amp;nbsp; I would greatly appreciate for the example.&lt;/P&gt;
&lt;P&gt;Thanks a lot in advance.&lt;/P&gt;
&lt;P&gt;PS. Yes, we know about netapp&amp;nbsp;home share feature, but right now&amp;nbsp;its a matter of exact data migration, same way as it was, so need those shares on netapp.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS2. If someone has a script based on "cifs share create -vserver"&amp;nbsp;command and an example of how to apply to SVM, this would work too.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 19:03:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/147484#M354</guid>
      <dc:creator>georgel</dc:creator>
      <dc:date>2019-03-27T19:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell  windows share creation automation</title>
      <link>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/147550#M359</link>
      <description>&lt;P&gt;Hi Folks,&lt;/P&gt;
&lt;P&gt;to update my post, we "cooked" a ps script using Netapp Powershell kit&amp;nbsp; for each share with this syntax:&lt;/P&gt;
&lt;P&gt;Add-NcCifsShare -Name UserShare$ -path '/vol_name/qtree_name/users/Userpath' -ShareProperties @("browsable","oplocks","show_previous_versions")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some pre-massaging in Excel for columns and path modification and Notepadd++ to remove extra tabs and spaces&amp;nbsp;were required.&amp;nbsp; But it did the job reasonably quick and for each runaway,&amp;nbsp;an error will point to the line number in the script,&amp;nbsp; so its easy to track down a specific path to fix.&amp;nbsp; Hope it will help someone else as well. Cheers!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 19:00:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/147550#M359</guid>
      <dc:creator>georgel</dc:creator>
      <dc:date>2019-03-29T19:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell  windows share creation automation</title>
      <link>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/160375#M1032</link>
      <description>&lt;P&gt;Hi,&amp;nbsp; How can I see the original solution? I cant seem to open the link.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 13:45:25 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/160375#M1032</guid>
      <dc:creator>irene_david</dc:creator>
      <dc:date>2020-10-19T13:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: PowerShell  windows share creation automation</title>
      <link>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/441021#M1463</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;apparently you have to answer your own questions here. What a pity.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":sad_but_relieved_face:"&gt;😥&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2023 14:15:15 GMT</pubDate>
      <guid>https://community.netapp.com/t5/General-Discussion/PowerShell-windows-share-creation-automation/m-p/441021#M1463</guid>
      <dc:creator>Akromat_Eichler</dc:creator>
      <dc:date>2023-01-19T14:15:15Z</dc:date>
    </item>
  </channel>
</rss>

