<?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: How to set Portal address in Global Protect using powershell in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516605#M107282</link>
    <description>&lt;P&gt;Hi, thanks for reply. I tried what you said but same pop up comes with manual insert of portal address.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shubham_10_0-1664792739416.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44343i6E6282C80C814966/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Shubham_10_0-1664792739416.png" alt="Shubham_10_0-1664792739416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2022 10:26:20 GMT</pubDate>
    <dc:creator>Shubham_10</dc:creator>
    <dc:date>2022-10-03T10:26:20Z</dc:date>
    <item>
      <title>How to set Portal address in Global Protect using powershell</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516464#M107245</link>
      <description>&lt;P&gt;Hi, I want to install Global protect using powershell. It gets installed but Portal address is not set by powershell, as it ask for manual input for that.&lt;/P&gt;
&lt;P&gt;My code :&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;&lt;SPAN class=""&gt;# Get full path of msiexec, which is more reliable than depending on PATH env var
&lt;SPAN class=""&gt;$msiexec = Join-Path ([Environment]::SystemDirectory) msiexec.exe

&lt;SPAN class=""&gt;# Start msiexec and wait until it has finished
&lt;SPAN class=""&gt;$process = Start-Process &lt;SPAN class=""&gt;$msiexec -PassThru -Wait -ArgumentList &lt;SPAN class=""&gt;"&lt;SPAN&gt;/i `"$PSScriptRoot\Files\GlobalProtect64-5.2.10.msi`" /q /norestart /l*v `"$PSScriptRoot\instlog.txt`" PORTAL=`"vpn.abc.com`&lt;SPAN class=""&gt;"

&lt;SPAN class=""&gt;# Check if installation was successful
&lt;SPAN class=""&gt;# Exit codes of 0 (ERROR_SUCCESS) and 3010 (ERROR_SUCCESS_REBOOT_REQUIRED) indicate success
&lt;SPAN class=""&gt;if( &lt;SPAN class=""&gt;$process.ExitCode -&lt;SPAN class=""&gt;in 0, 3010 ) {
    Write-Host &lt;SPAN class=""&gt;'Installation successful'
    &lt;SPAN class=""&gt;if( &lt;SPAN class=""&gt;$process.ExitCode -eq 3010 ) {
        Write-Host &lt;SPAN class=""&gt;'A reboot is required'
    }
} 
&lt;SPAN class=""&gt;else {
    Write-Host &lt;SPAN class=""&gt;"Installation failed with exit code &lt;SPAN class=""&gt;$($process.ExitCode)"
}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;In logs I can see :&amp;nbsp;&lt;SPAN&gt;LOG details : PROPERTY CHANGE: Adding PORTAL property. Its value is 'vpn.abc.com'.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help will be thankfull.&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE class=""&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 30 Sep 2022 11:45:15 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516464#M107245</guid>
      <dc:creator>Shubham_10</dc:creator>
      <dc:date>2022-09-30T11:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Portal address in Global Protect using powershell</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516474#M107249</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/241136"&gt;@Shubham_10&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The application reads the portal from the registry by default, so what I do is simply stage the required registry key with the proper portal address on all endpoints. This way you can deploy it to all endpoints and even if GlobalProtect is never installed the fact the key exists doesn't matter.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Key Path: HKEY_LOCAL_MACHINE\SOFTWARE\Palo Alto Networks\GlobalProtect\PanSetup&lt;/P&gt;
&lt;P&gt;Value Name: Portal&lt;/P&gt;
&lt;P&gt;Value Type: REG_SZ&lt;/P&gt;
&lt;P&gt;Value Data:&amp;nbsp;&lt;EM&gt;PortalAddress&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2022 14:37:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516474#M107249</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2022-09-30T14:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to set Portal address in Global Protect using powershell</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516605#M107282</link>
      <description>&lt;P&gt;Hi, thanks for reply. I tried what you said but same pop up comes with manual insert of portal address.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shubham_10_0-1664792739416.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/44343i6E6282C80C814966/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="Shubham_10_0-1664792739416.png" alt="Shubham_10_0-1664792739416.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2022 10:26:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-set-portal-address-in-global-protect-using-powershell/m-p/516605#M107282</guid>
      <dc:creator>Shubham_10</dc:creator>
      <dc:date>2022-10-03T10:26:20Z</dc:date>
    </item>
  </channel>
</rss>

