<?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 Add CIFS share propreties in WFA in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Add-CIFS-share-propreties-in-WFA/m-p/138702#M25230</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to enable acces-based-enumeration on CIFS share create Workflow.&lt;/P&gt;
&lt;P&gt;I know I have to add parameters definition but as I'm new in WFA I have no clue how to do it.&lt;/P&gt;
&lt;P&gt;Can you pls give me step by step procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my "create CIFS share" power shell command:&lt;/P&gt;
&lt;P&gt;param (&lt;BR /&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name or IP address of the cluster hosting the Storage Virtual Machine.")]&lt;BR /&gt;&amp;nbsp; [string]$Cluster,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name of the Storage Virtual Machine in which the CIFS share will be created.")]&lt;BR /&gt;&amp;nbsp; [string]$Vserver,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="File system path that is shared through this CIFS share.")]&lt;BR /&gt;&amp;nbsp; [string]$Path,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name of the CIFS share to be created.")]&lt;BR /&gt;&amp;nbsp; [string]$ShareName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Option which determines whether SMB encryption is required for incoming CIFS traffic. By default this option is false.")]&lt;BR /&gt;&amp;nbsp; [ValidateSet("true","false")]&lt;BR /&gt;&amp;nbsp; [string]$EncryptData,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="A comment that gives a description of the CIFS share. CIFS clients see this description when browsing the Storage Virtual Machine's CIFS shares.")]&lt;BR /&gt;&amp;nbsp; [string]$Comment&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Get-WFALogger -Info -message $("Creating CIFS share: " + $ShareName + "at path: "+ $Path)&lt;/P&gt;
&lt;P&gt;$command = "Add-NcCifsShare -Name " +&amp;nbsp; $ShareName + " -Path " + $Path&lt;/P&gt;
&lt;P&gt;# Add share&lt;BR /&gt;if ($Comment)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $command += " -Comment " + "'" + $Comment + "'"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;if ($EncryptData -eq "true")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $command += " -ShareProperties encrypt_data"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;$command += " -VserverContext " + $Vserver&lt;/P&gt;
&lt;P&gt;# connect to cluster&lt;BR /&gt;Connect-WfaCluster $Cluster&lt;/P&gt;
&lt;P&gt;Try&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $result = Invoke-Expression -ErrorAction stop $command&lt;BR /&gt;}&lt;BR /&gt;Catch&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ErrorMessage = $_.Exception.Message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw "Create CIFS share failed. Reason : " + $ErrorMessage &lt;BR /&gt;}&lt;BR /&gt;if ($result.Status -eq "failed")&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw "Create CIFS share failed. Reason : " + $result.ErrorMessage&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 13:57:01 GMT</pubDate>
    <dc:creator>NTA1201</dc:creator>
    <dc:date>2025-06-04T13:57:01Z</dc:date>
    <item>
      <title>Add CIFS share propreties in WFA</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Add-CIFS-share-propreties-in-WFA/m-p/138702#M25230</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to enable acces-based-enumeration on CIFS share create Workflow.&lt;/P&gt;
&lt;P&gt;I know I have to add parameters definition but as I'm new in WFA I have no clue how to do it.&lt;/P&gt;
&lt;P&gt;Can you pls give me step by step procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my "create CIFS share" power shell command:&lt;/P&gt;
&lt;P&gt;param (&lt;BR /&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name or IP address of the cluster hosting the Storage Virtual Machine.")]&lt;BR /&gt;&amp;nbsp; [string]$Cluster,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name of the Storage Virtual Machine in which the CIFS share will be created.")]&lt;BR /&gt;&amp;nbsp; [string]$Vserver,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="File system path that is shared through this CIFS share.")]&lt;BR /&gt;&amp;nbsp; [string]$Path,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$true, HelpMessage="Name of the CIFS share to be created.")]&lt;BR /&gt;&amp;nbsp; [string]$ShareName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="Option which determines whether SMB encryption is required for incoming CIFS traffic. By default this option is false.")]&lt;BR /&gt;&amp;nbsp; [ValidateSet("true","false")]&lt;BR /&gt;&amp;nbsp; [string]$EncryptData,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; [parameter(Mandatory=$false, HelpMessage="A comment that gives a description of the CIFS share. CIFS clients see this description when browsing the Storage Virtual Machine's CIFS shares.")]&lt;BR /&gt;&amp;nbsp; [string]$Comment&lt;BR /&gt;)&lt;/P&gt;
&lt;P&gt;Get-WFALogger -Info -message $("Creating CIFS share: " + $ShareName + "at path: "+ $Path)&lt;/P&gt;
&lt;P&gt;$command = "Add-NcCifsShare -Name " +&amp;nbsp; $ShareName + " -Path " + $Path&lt;/P&gt;
&lt;P&gt;# Add share&lt;BR /&gt;if ($Comment)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $command += " -Comment " + "'" + $Comment + "'"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;if ($EncryptData -eq "true")&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $command += " -ShareProperties encrypt_data"&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;$command += " -VserverContext " + $Vserver&lt;/P&gt;
&lt;P&gt;# connect to cluster&lt;BR /&gt;Connect-WfaCluster $Cluster&lt;/P&gt;
&lt;P&gt;Try&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $result = Invoke-Expression -ErrorAction stop $command&lt;BR /&gt;}&lt;BR /&gt;Catch&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $ErrorMessage = $_.Exception.Message&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw "Create CIFS share failed. Reason : " + $ErrorMessage &lt;BR /&gt;}&lt;BR /&gt;if ($result.Status -eq "failed")&lt;BR /&gt;&amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw "Create CIFS share failed. Reason : " + $result.ErrorMessage&lt;BR /&gt;&amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thx.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:57:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Add-CIFS-share-propreties-in-WFA/m-p/138702#M25230</guid>
      <dc:creator>NTA1201</dc:creator>
      <dc:date>2025-06-04T13:57:01Z</dc:date>
    </item>
  </channel>
</rss>

