<?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: Powershell DSC Encrypted Password File Error - The password cannot be null or empty in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1191651#M33486</link>
    <description>&lt;P&gt;I have not given up yet and have actually found the culprit to the error above. After working through many different scenarios I believe I have gotten to a point where I am now partially successful. Below is what I ended up doing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;requested our server team to digitally sign the entire all the powershell files in the ArcGIS Module folder&lt;/LI&gt;&lt;LI&gt;used the option to create the password files as needed&lt;/LI&gt;&lt;LI&gt;eliminated the &lt;SPAN&gt;new param options for encrypting the MOF file since this is what was causing the error.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I would LOVE to be able use the&amp;nbsp;options for encrypting the MOF files as these would help ensure a secure environment but for now, I think I will continue down the current road that I am at so that I can move in a forward direction.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Again, please note that I am invoking the cmdlet from a different server than the 3 target servers. I believe I have done all the steps described in ESRI document but it is still not working.&lt;/P&gt;&lt;P&gt;Thought/suggestions greatly appreciated!&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jul 2022 18:12:36 GMT</pubDate>
    <dc:creator>DianaBenedict1</dc:creator>
    <dc:date>2022-07-12T18:12:36Z</dc:date>
    <item>
      <title>Powershell DSC Encrypted Password File Error - The password cannot be null or empty</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1184448#M33371</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I have successfully installed and upgraded my Dev environment using Powershell DSC with a Three-server deployment - woot woot. Once I moved to our TEST environment, I realized that I should really follow best security practices and used the following documents/blogs to ensure that we were setting our DSC environments correctly. Not only is it best practice, I believe our TEST and PROD will not allow us to pass clear text, unprotected passwords for domain accounts. I found the following articles very useful in understanding how Powershell and ESRI DSC accomplish this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.infosupport.com/safely-using-pscredentials-in-a-powershell-dsc-configuration/" target="_blank" rel="noopener"&gt;https://blogs.infosupport.com/safely-using-pscredentials-in-a-powershell-dsc-configuration/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/dsc/pull-server/secureMOF?view=dsc-1.1&amp;amp;viewFallbackFrom=powershell-7.2" target="_blank" rel="noopener"&gt;https://docs.microsoft.com/en-us/powershell/dsc/pull-server/secureMOF?view=dsc-1.1&amp;amp;viewFallbackFrom=powershell-7.2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://devblogs.microsoft.com/powershell/want-to-secure-credentials-in-windows-powershell-desired-state-configuration/" target="_blank" rel="noopener"&gt;https://devblogs.microsoft.com/powershell/want-to-secure-credentials-in-windows-powershell-desired-state-configuration/&lt;/A&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;After reviewing the Powershell explanations and reading the ESRI document&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-powershell-dsc/wiki/V3.-Password-Files-and-Encrypted-Deployments" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp; I found that we needed to do the following in order to safely upgrade our UAT environment using ESRI ArcGIS Powershell DSC.&lt;/P&gt;&lt;P data-unlink="true"&gt;1) encrypting passwords for our Domain Service accounts and Cert export files so they are not clear text&lt;/P&gt;&lt;P&gt;2) using the new param options for encrypting the MOF file as described in the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;"TargetNodeEncyrptionCertificateFilePath"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;C:&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;Users&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;&amp;lt;username&amp;gt;&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;AppData&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;Local&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;Temp&lt;SPAN class=""&gt;\\&lt;/SPAN&gt;DscPublicKey-TargetNode1.cer&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;,
&lt;SPAN class=""&gt;"TargetNodeEncyrptionCertificateThumbprint"&lt;/SPAN&gt;:&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;92C232C78204701BEB3FFB2CDEF24A6D2FAA97DA&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I no longer the received the common warnings when I&amp;nbsp;&lt;SPAN&gt;run the&amp;nbsp;&lt;/SPAN&gt;Invoke-ArcGISConfiguration&lt;SPAN&gt;&amp;nbsp;cmdlet.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error Message on the PortalUprade V2 Log files&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;6/17/2022 4:29:58 PM: The password supplied to the Desired State Configuration resource ArcGIS_Install is not valid. The password cannot be null or empty.&lt;BR /&gt;6/17/2022 4:29:58 PM: The SendConfigurationApply function did not succeed.&lt;/P&gt;&lt;P&gt;QUESTIONS:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are there other GroupPolicies and or Server settings that we should be aware of that would prevent the password from being passed?&lt;/LI&gt;&lt;LI&gt;Is there a simple example for me to use so I can test the PWD encryption and MOF encryption are working correctly?&lt;/LI&gt;&lt;LI&gt;I am using a domain account to invoke the cmdlet, this domain user has been temporarily added to local admin on each target machine. Are there other setting that I am missing?&lt;/LI&gt;&lt;LI&gt;I attempted to use the -Credential option so I can RunAs the SA account (also domain account) I even used the&amp;nbsp; -UseSSL property but that did not seem to make a difference, other thoughts or suggestions?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/23815" target="_blank" rel="noopener"&gt;@CameronKroeker&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;- could really use either yours or others on the Powershell DSC Team. I met some of you during the past ESRI Dev summit and we discussed how I could get my environments installed and upgraded using Powershell. As stated above, it was so wonderful to see how easy and fast it was to upgrade our 3 servers using Powershell DSC for our DEV. I really want to get this working for our UAT/TEST and eventually our PROD environments.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance for any help you can provide.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Diana&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 20:12:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1184448#M33371</guid>
      <dc:creator>DianaBenedict1</dc:creator>
      <dc:date>2022-06-20T20:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell DSC Encrypted Password File Error - The password cannot be null or empty</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1185431#M33390</link>
      <description>&lt;P&gt;It probably isn't you.&amp;nbsp; &amp;nbsp;If you have updated Windows to the latest June patches, it breaks DSC credentials.&amp;nbsp; The easiest test here is to check if your server has the latest Windows Update (June cumulative) on it, and if so, uninstall, then run again.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://twitter.com/RobertBiddle/status/1538287531833303042" target="_blank"&gt;https://twitter.com/RobertBiddle/status/1538287531833303042&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 12:04:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1185431#M33390</guid>
      <dc:creator>TheChad</dc:creator>
      <dc:date>2022-06-23T12:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell DSC Encrypted Password File Error - The password cannot be null or empty</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1191651#M33486</link>
      <description>&lt;P&gt;I have not given up yet and have actually found the culprit to the error above. After working through many different scenarios I believe I have gotten to a point where I am now partially successful. Below is what I ended up doing:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;requested our server team to digitally sign the entire all the powershell files in the ArcGIS Module folder&lt;/LI&gt;&lt;LI&gt;used the option to create the password files as needed&lt;/LI&gt;&lt;LI&gt;eliminated the &lt;SPAN&gt;new param options for encrypting the MOF file since this is what was causing the error.&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I would LOVE to be able use the&amp;nbsp;options for encrypting the MOF files as these would help ensure a secure environment but for now, I think I will continue down the current road that I am at so that I can move in a forward direction.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Again, please note that I am invoking the cmdlet from a different server than the 3 target servers. I believe I have done all the steps described in ESRI document but it is still not working.&lt;/P&gt;&lt;P&gt;Thought/suggestions greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 18:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/powershell-dsc-encrypted-password-file-error-the/m-p/1191651#M33486</guid>
      <dc:creator>DianaBenedict1</dc:creator>
      <dc:date>2022-07-12T18:12:36Z</dc:date>
    </item>
  </channel>
</rss>

