<?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 Using WFA to determine and set cluster CIFS share NTFS permissions via remote script in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-WFA-to-determine-and-set-cluster-CIFS-share-NTFS-permissions-via-remote/m-p/110364#M19476</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Slowly getting to grips with WFA, so please forgive me if I'm missing something fundamental but I've spent some considerable time trying to get a WFA command to remotely set NTFS permissions on a cluster hosted share.&amp;nbsp; The latest version of my code (also hosted on the windows wfa server)&amp;nbsp;&amp;nbsp;is here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$Cluster = "clust1"&lt;BR /&gt;Connect-WfaCluster -node $Cluster -vserver "vsm1"&lt;/P&gt;
&lt;P&gt;$secpasswd = convertto-securestring "password" -asplaintext -force&lt;BR /&gt;$mycreds = new-object system.management.automation.pscredential ("domain\user", $secpasswd)&lt;/P&gt;
&lt;P&gt;$s = new-pssession -computername wfa1 -credential $mycreds&lt;BR /&gt;enter-pssession $s&lt;BR /&gt;invoke-command -session $s -scriptblock {c:\erunas\mod2.ps1}&lt;/P&gt;
&lt;P&gt;remove-pssession $s&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;within the mod2.ps1 i am simply trying to perform a couple of tests and initially retrieve the current permissions using get-acl:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set-executionpolicy -executionpolicy bypass -scope currentuser&lt;/P&gt;
&lt;P&gt;whoami &amp;gt; c:\erunas\who.txt&lt;BR /&gt;test-connection -computername wfa1 &amp;gt; c:\erunas\wfa1.txt&lt;BR /&gt;$a = get-acl "\\vsm1\AMDEV_App"&lt;BR /&gt;$a &amp;gt; c:\erunas\amdev.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"whoami" returns the&amp;nbsp;parsed account from the new-pssession, and is an account with full rights to the share&lt;/P&gt;
&lt;P&gt;"test-connection" confirms communication from wfa (web gui)&amp;nbsp;to effectively itself (i.e. where the script is)&lt;/P&gt;
&lt;P&gt;Although receive Access Denied when attempting to capture and save get-acl results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run the get-acl command independant of wfa, using the same account, in a "standard" powershell session it works fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thinking was that I need to use an alternate account otherwise "NT Authority \ System" account is used and is insufficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any feedback very much appreciated.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 23:09:40 GMT</pubDate>
    <dc:creator>negusa</dc:creator>
    <dc:date>2025-06-04T23:09:40Z</dc:date>
    <item>
      <title>Using WFA to determine and set cluster CIFS share NTFS permissions via remote script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-WFA-to-determine-and-set-cluster-CIFS-share-NTFS-permissions-via-remote/m-p/110364#M19476</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Slowly getting to grips with WFA, so please forgive me if I'm missing something fundamental but I've spent some considerable time trying to get a WFA command to remotely set NTFS permissions on a cluster hosted share.&amp;nbsp; The latest version of my code (also hosted on the windows wfa server)&amp;nbsp;&amp;nbsp;is here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$Cluster = "clust1"&lt;BR /&gt;Connect-WfaCluster -node $Cluster -vserver "vsm1"&lt;/P&gt;
&lt;P&gt;$secpasswd = convertto-securestring "password" -asplaintext -force&lt;BR /&gt;$mycreds = new-object system.management.automation.pscredential ("domain\user", $secpasswd)&lt;/P&gt;
&lt;P&gt;$s = new-pssession -computername wfa1 -credential $mycreds&lt;BR /&gt;enter-pssession $s&lt;BR /&gt;invoke-command -session $s -scriptblock {c:\erunas\mod2.ps1}&lt;/P&gt;
&lt;P&gt;remove-pssession $s&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;within the mod2.ps1 i am simply trying to perform a couple of tests and initially retrieve the current permissions using get-acl:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set-executionpolicy -executionpolicy bypass -scope currentuser&lt;/P&gt;
&lt;P&gt;whoami &amp;gt; c:\erunas\who.txt&lt;BR /&gt;test-connection -computername wfa1 &amp;gt; c:\erunas\wfa1.txt&lt;BR /&gt;$a = get-acl "\\vsm1\AMDEV_App"&lt;BR /&gt;$a &amp;gt; c:\erunas\amdev.txt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"whoami" returns the&amp;nbsp;parsed account from the new-pssession, and is an account with full rights to the share&lt;/P&gt;
&lt;P&gt;"test-connection" confirms communication from wfa (web gui)&amp;nbsp;to effectively itself (i.e. where the script is)&lt;/P&gt;
&lt;P&gt;Although receive Access Denied when attempting to capture and save get-acl results&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run the get-acl command independant of wfa, using the same account, in a "standard" powershell session it works fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My thinking was that I need to use an alternate account otherwise "NT Authority \ System" account is used and is insufficient.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any feedback very much appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 23:09:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-WFA-to-determine-and-set-cluster-CIFS-share-NTFS-permissions-via-remote/m-p/110364#M19476</guid>
      <dc:creator>negusa</dc:creator>
      <dc:date>2025-06-04T23:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using WFA to determine and set cluster CIFS share NTFS permissions via remote script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-WFA-to-determine-and-set-cluster-CIFS-share-NTFS-permissions-via-remote/m-p/110547#M19497</link>
      <description>&lt;P&gt;Yes, my guess is that you are running the WFA services as your local account. Change that to be a domain account that has the privileges to that share. WFA runs all of its scripts via that user. &amp;nbsp;The services are 'Netapp WFA Server' and 'Netapp WFA Database' honestly, you may be able to get away with only change the 'Netapp WFA Server'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And welcome to the community!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 13:20:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/Using-WFA-to-determine-and-set-cluster-CIFS-share-NTFS-permissions-via-remote/m-p/110547#M19497</guid>
      <dc:creator>coreywanless</dc:creator>
      <dc:date>2015-10-02T13:20:06Z</dc:date>
    </item>
  </channel>
</rss>

