<?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: connect-nccontroller without password prompt in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155833#M6185</link>
    <description>&lt;P&gt;Yes, I read this. But this means I have to store the password one time. And I have to change this when the domain password changes.&lt;/P&gt;
&lt;P&gt;Is there no way to use the token of the already logged in user?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Apr 2020 13:31:56 GMT</pubDate>
    <dc:creator>AK_Win</dc:creator>
    <dc:date>2020-04-30T13:31:56Z</dc:date>
    <item>
      <title>connect-nccontroller without password prompt</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155831#M6183</link>
      <description>&lt;P&gt;Hi together,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to run a script (exporting shares etc.) without a password promt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our CVO 9.5P10 is domain joined and the user the powershell session is running with is set as admin on clust and svm level.&lt;/P&gt;
&lt;P&gt;Is there a way to use the user of the Powershell session to do the login without storing the password somewhere and without having a password prompt?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried multiple things, e.g.&lt;/P&gt;
&lt;P&gt;connect-nccontroller $server&lt;/P&gt;
&lt;P&gt;connect-nccontroller $server -Credential $(whoami)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 11:11:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155831#M6183</guid>
      <dc:creator>AK_Win</dc:creator>
      <dc:date>2025-06-04T11:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: connect-nccontroller without password prompt</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155832#M6184</link>
      <description>&lt;P&gt;Check the man pages.. Here is the full information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;C:\PS&amp;gt;$password = ConvertTo-SecureString "p@ssword" -AsPlainText -Force&lt;BR /&gt;$cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList "admin",$password&lt;BR /&gt;Connect-NcController 10.61.172.155 -Credential $cred&lt;/P&gt;
&lt;P&gt;Connect to controller '10.61.172.155' using HTTP/HTTPS but suppress the credential prompt by creating a PSCredential object programmatically.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:24:22 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155832#M6184</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2020-04-30T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: connect-nccontroller without password prompt</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155833#M6185</link>
      <description>&lt;P&gt;Yes, I read this. But this means I have to store the password one time. And I have to change this when the domain password changes.&lt;/P&gt;
&lt;P&gt;Is there no way to use the token of the already logged in user?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Apr 2020 13:31:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155833#M6185</guid>
      <dc:creator>AK_Win</dc:creator>
      <dc:date>2020-04-30T13:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: connect-nccontroller without password prompt</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155878#M6186</link>
      <description>&lt;P&gt;Someone shared this on another post of mine.&amp;nbsp; You can pass this for the credentials.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;#Store credentials if needed&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (!($Creds)){Set-Variable -Name Creds -Value (Get-Credential -credential "$env:userdomain\$env:username") -Scope Global -Visibility Public -Option AllScope}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 May 2020 20:02:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155878#M6186</guid>
      <dc:creator>mcgue</dc:creator>
      <dc:date>2020-05-03T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: connect-nccontroller without password prompt</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155885#M6187</link>
      <description>&lt;P&gt;My recommendation would be to look at the "Add-NcCredential" cmdlet for encrypted storage of cached credentials that can be used by the PSTK. You could also use the &lt;A href="https://www.powershellgallery.com/packages/CredentialManager/2.0" target="_self"&gt;"Credential Manager"&lt;/A&gt; module from the PowerShell Gallery, which provides you a method to retrieve credentials from the native Windows Credential Manager. I've used both of these options with good results in my code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 13:42:57 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/connect-nccontroller-without-password-prompt/m-p/155885#M6187</guid>
      <dc:creator>donny_lang</dc:creator>
      <dc:date>2020-05-04T13:42:57Z</dc:date>
    </item>
  </channel>
</rss>

