<?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 gMSA account in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/454912#M43920</link>
    <description>&lt;P&gt;Is it possible to login to a NetApp cluster (9.13) using a global Managed Service Account to run a powershell script?&lt;/P&gt;</description>
    <pubDate>Fri, 06 Sep 2024 14:20:14 GMT</pubDate>
    <dc:creator>ToddBarton</dc:creator>
    <dc:date>2024-09-06T14:20:14Z</dc:date>
    <item>
      <title>gMSA account</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/454912#M43920</link>
      <description>&lt;P&gt;Is it possible to login to a NetApp cluster (9.13) using a global Managed Service Account to run a powershell script?&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 14:20:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/454912#M43920</guid>
      <dc:creator>ToddBarton</dc:creator>
      <dc:date>2024-09-06T14:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: gMSA account</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/455001#M43940</link>
      <description>&lt;P&gt;If the system is configured for domain authentication and the account is part of a group that is authorised for the ONTAPI login method, it should work.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2024 07:43:45 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/455001#M43940</guid>
      <dc:creator>AlexDawson</dc:creator>
      <dc:date>2024-09-12T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: gMSA account</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/455130#M43960</link>
      <description>&lt;P&gt;The system is configured for domain authentication and the account is part of a group authorized for ONTAPI login. I can't figure out how to run the Get- and Add-Credential to include both the Userid (gMSA account) and the password in my script to allow the connection to the NetApp cluster.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 17:47:59 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/455130#M43960</guid>
      <dc:creator>ToddBarton</dc:creator>
      <dc:date>2024-09-16T17:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: gMSA account</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/455182#M43961</link>
      <description>&lt;P&gt;You can use stored credentials for auto login, similar to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$credential = Get-Credential&lt;BR /&gt;$credential.password |ConvertFrom-SecureString |set-Content C:\Users\domain_user\encrypted_password.txt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$encrypted = Get-Content C:\Users\domain_user\encrypted_password.txt | ConvertTo-SecureString&lt;BR /&gt;$dom_user = "domain\domain_user"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;$credential = New-Object System.Management.Automation.PsCredential($dom_user, $encrypted)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then use that credential ($credential) to login to the cluster ($filer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ClusterConnection = Connect-NcController -name $filer -Credential $credential&lt;BR /&gt;# If the connection is not success, exit else continue.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if (!$ClusterConnection) {&lt;BR /&gt;Write-Host "Unable to connect to $filer, please ensure all supplied information is correct and try again"&lt;BR /&gt;Exit&lt;/P&gt;&lt;P&gt;} else&lt;/P&gt;&lt;P&gt;{ Continue with you script}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 03:41:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/gMSA-account/m-p/455182#M43961</guid>
      <dc:creator>Sanaman</dc:creator>
      <dc:date>2024-09-17T03:41:14Z</dc:date>
    </item>
  </channel>
</rss>

