<?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 WFA SOAP script - getting windows credentials to avoid hardcoding pwds in the script in Active IQ Unified Manager Discussions</title>
    <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/98986#M17457</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to connect to WFA ( via SOAP powershell script ) so the powershell can use the existing windows credentials where the script is being executed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is to avoid having to plaintext or hardcode the password somewhere in the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 05:20:04 GMT</pubDate>
    <dc:creator>trentino123</dc:creator>
    <dc:date>2025-06-05T05:20:04Z</dc:date>
    <item>
      <title>WFA SOAP script - getting windows credentials to avoid hardcoding pwds in the script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/98986#M17457</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how to connect to WFA ( via SOAP powershell script ) so the powershell can use the existing windows credentials where the script is being executed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is to avoid having to plaintext or hardcode the password somewhere in the script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:20:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/98986#M17457</guid>
      <dc:creator>trentino123</dc:creator>
      <dc:date>2025-06-05T05:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: WFA SOAP script - getting windows credentials to avoid hardcoding pwds in the script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/98993#M17458</link>
      <description>&lt;P&gt;I don't think we can use the existing windows user credentials for this. If you do not want to hardcode the WFA login password in the script, you can do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1. Prompt the user for Credentials when executing the script. This is open a prompt for the user to enter credentials.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$wfaCreds =&amp;nbsp;Get-Credential&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#Now use this credential in your code with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$wfa = New-WebServiceProxy -Uri $uri&amp;nbsp;-Credential $wfaCreds&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Save the credentials in encrypted form in a password file. Only the windows user who created the file can decrypt it. So its fairly secure and can only be run by 1 user.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"password" | ConvertTo-SecureString -AsPlainText -Force | ConvertFrom-SecureString |Out-File C:\pass.txt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now in your Powersell script: Get the contents of this file, convert to secure string and build your credential.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$pass = Get-Content C:\pass.txt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;$wfaCreds = &amp;nbsp;New-Object -TypeName System.Management.Automation.PSCredential -argumentlist $username,($pass&amp;nbsp;| ConvertTo-SecureString)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;sinhaa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 17:58:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/98993#M17458</guid>
      <dc:creator>sinhaa</dc:creator>
      <dc:date>2015-01-07T17:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: WFA SOAP script - getting windows credentials to avoid hardcoding pwds in the script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/99009#M17461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can cache your domain credentials in the WFA credential cache and invoke the workflow from a remote host using the REST API. The workflow can then retrieve the domain credentials using the "Get-WFACredential" Command to ensure the workflow you want to invoke is executed within the correct security context. There are some examples of using the REST API here:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" title="http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Articles-and-Resources/Interactive-execution-of-Workflows-as-CLI-using-REST-APIs-in-PowerShell/ta-p/86107" href="https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Articles-and-Resources/Interactive-execution-of-Workflows-as-CLI-using-REST-APIs-in-PowerShell/ta-p/86107"&gt;http://community.netapp.com/t5/OnCommand-Storage-Management-Software-Articles-and-Resources/Interactive-execution-of-Workflows-as-CLI-using-REST-APIs-in-PowerShell/ta-p/86107&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2015 22:55:07 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/99009#M17461</guid>
      <dc:creator>mbeattie</dc:creator>
      <dc:date>2015-01-07T22:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: WFA SOAP script - getting windows credentials to avoid hardcoding pwds in the script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/99073#M17470</link>
      <description>&lt;P&gt;Thanks Sinhaa! It did the trick.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 19:59:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/99073#M17470</guid>
      <dc:creator>trentino123</dc:creator>
      <dc:date>2015-01-08T19:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: WFA SOAP script - getting windows credentials to avoid hardcoding pwds in the script</title>
      <link>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/99074#M17471</link>
      <description>&lt;P&gt;Thanks Matt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That works fine , you only need the credentials stored in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2015 20:00:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Active-IQ-Unified-Manager-Discussions/WFA-SOAP-script-getting-windows-credentials-to-avoid-hardcoding-pwds-in-the/m-p/99074#M17471</guid>
      <dc:creator>trentino123</dc:creator>
      <dc:date>2015-01-08T20:00:40Z</dc:date>
    </item>
  </channel>
</rss>

