<?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: Dynatrace professional practical certification exam powershell issue in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267623#M35376</link>
    <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;Ensure that the {environmentid} is replaced with the correct value.&lt;BR /&gt;Test the URL directly in a browser or using a tool like curl or Postman to verify that it works and downloads the file.&lt;BR /&gt;Check if there are any network restrictions (firewall, proxy, etc.) blocking the request.&lt;BR /&gt;&lt;BR /&gt;Use Test-NetConnection to confirm that the machine can reach the Dynatrace server.&lt;BR /&gt;Test-NetConnection -ComputerName "{environmentid}.live.dynatrace.com" -Port 443&lt;BR /&gt;&lt;BR /&gt;Try it like this:&lt;BR /&gt;powershell -command "&lt;BR /&gt;$ProgressPreference = 'SilentlyContinue';&lt;BR /&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;&lt;BR /&gt;Invoke-RestMethod -Uri 'https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/agent/windows/default/latest?arch=x86' -Headers @{ 'Authorization' = 'Api-Token dt0c01.xxxxxxxxxxx' } -OutFile 'Dynatrace-OneAgent-Windows.exe';&lt;BR /&gt;Write-Host 'Download completed.'&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jan 2025 11:46:50 GMT</pubDate>
    <dc:creator>SerkanYALCINER</dc:creator>
    <dc:date>2025-01-16T11:46:50Z</dc:date>
    <item>
      <title>Dynatrace professional practical certification exam powershell issue</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267579#M35367</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently sat the DT professional practical exam one thing I didnt expect was how much trouble I would have with the powershell install and I regret not familiarising myself with the install of oneagent via Powershell commands.&lt;BR /&gt;&lt;BR /&gt;I am more familiar with Linux install and didnt think PS would be an issue, as the command would just work .....right? Actually I was so wrong as copying and pasting the command provided once I generated the token in the DT managed environment gave me the command per usual:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;powershell -command “$ProgressPreference = ‘SilentlyContinue’; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/agent/windows/default/latest?arch=x86’ -Headers @{ ‘Authorization’ = ‘Api-Token dt0c01.xxxxxxxxxxx’ } -OutFile ‘Dynatrace-OneAgent-Windows-1.303.62.20241129-131342.exe’”&lt;/LI-CODE&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;&lt;P&gt;The problem is that when I ran the command in the windows box provided in the exam I received no file and just the next command prompt with no progress. I ended up just manually installing the .exe file&amp;nbsp;&lt;BR /&gt;I checked the version of PS and the TLS1.2 and these are in line with the recommended versions&lt;BR /&gt;&lt;BR /&gt;Has anyone else seen this or know why this happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example below shows no output, running as Administrator makes no difference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NickMcEwen_0-1737000813580.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25751iFE276185366DB46F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NickMcEwen_0-1737000813580.png" alt="NickMcEwen_0-1737000813580.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 05:12:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267579#M35367</guid>
      <dc:creator>NickMcEwen</dc:creator>
      <dc:date>2025-01-16T05:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace professional practical certification exam powershell issue</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267623#M35376</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;&lt;BR /&gt;Ensure that the {environmentid} is replaced with the correct value.&lt;BR /&gt;Test the URL directly in a browser or using a tool like curl or Postman to verify that it works and downloads the file.&lt;BR /&gt;Check if there are any network restrictions (firewall, proxy, etc.) blocking the request.&lt;BR /&gt;&lt;BR /&gt;Use Test-NetConnection to confirm that the machine can reach the Dynatrace server.&lt;BR /&gt;Test-NetConnection -ComputerName "{environmentid}.live.dynatrace.com" -Port 443&lt;BR /&gt;&lt;BR /&gt;Try it like this:&lt;BR /&gt;powershell -command "&lt;BR /&gt;$ProgressPreference = 'SilentlyContinue';&lt;BR /&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;&lt;BR /&gt;Invoke-RestMethod -Uri 'https://{environmentid}.live.dynatrace.com/api/v1/deployment/installer/agent/windows/default/latest?arch=x86' -Headers @{ 'Authorization' = 'Api-Token dt0c01.xxxxxxxxxxx' } -OutFile 'Dynatrace-OneAgent-Windows.exe';&lt;BR /&gt;Write-Host 'Download completed.'&lt;BR /&gt;"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 11:46:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267623#M35376</guid>
      <dc:creator>SerkanYALCINER</dc:creator>
      <dc:date>2025-01-16T11:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace professional practical certification exam powershell issue</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267677#M35388</link>
      <description>&lt;P&gt;Powershell is also notorious for downloading very slowly, even in high bandwidth connections...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 19:35:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267677#M35388</guid>
      <dc:creator>AntonioSousa</dc:creator>
      <dc:date>2025-01-16T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynatrace professional practical certification exam powershell issue</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267696#M35390</link>
      <description>&lt;P&gt;Thanks Serkan for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I launched my own windows 2019 server and tested the command you suggested with the Invoke-Restmethod -Uri example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;powershell -command "&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$ProgressPreference = 'SilentlyContinue';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Invoke-RestMethod -Uri&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Invoke-WebRequest -Uri&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;This unfortunately yielded the same result I had before with no output not even the Write-Host 'Download Completed' it just had no output and after 2 seconds went back to the 'PS C:\users\Adminstrator&amp;gt;' prompt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into the issue with some colleagues and we found the problem was with the variable $ProgressPreference&amp;nbsp;&lt;SPAN&gt;= 'SilentlyContinue'; I removed this and the file successfully downloaded.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-RestMethod -Uri 'https://.... -OutFile 'Dynatrace-OneAgent-Windows.exe'; Write-Host 'Download Completed'"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I also tested with setting the variable below and this also successfully downloaded the one agent file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set-Variable ProgressPreference 'SilentlyContinue'; powershell -command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest -Uri 'https://... -OutFile 'Dynatrace-OneAgent-Windows.exe'; Write-Host 'Download Completed'" &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;Thanks for your help with this issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 21:54:08 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/Dynatrace-professional-practical-certification-exam-powershell/m-p/267696#M35390</guid>
      <dc:creator>NickMcEwen</dc:creator>
      <dc:date>2025-01-16T21:54:08Z</dc:date>
    </item>
  </channel>
</rss>

