$url = "https://download.microsoft.com/download/8/0/0/800edc3a-02a4-4ee9-b1b3-bd9733f7d26d/WindowsServer2003-KB942097-v2-x64-ENU.exe" $out = "$env:TEMP\portqry_installer.exe" Invoke-WebRequest -Uri $url -OutFile $out Start-Process -FilePath $out -ArgumentList "/quiet /extract:C:\PortQry" -Wait Copy-Item "C:\PortQry\portqry.exe" "C:\Windows\System32\"
Once the extraction is complete, navigate to that folder. Inside, you will see several files. You will find the PortQry.exe file located right alongside the UI application ( PortQryUI.exe ). download portqry.exe windows server 2019
$url = "https://download.microsoft.com/download/8/0/0/800edc3a-02a4-4ee9-b1b3-bd9733f7d26d/WindowsServer2003-KB942097-v2-x64-ENU.exe" $out = "$env:TEMP\portqry_installer.exe" Invoke-WebRequest -Uri $url -OutFile $out Start-Process -FilePath $out -ArgumentList "/quiet /extract:C:\PortQry" -Wait Copy-Item "C:\PortQry\portqry.exe" "C:\Windows\System32\"
Once the extraction is complete, navigate to that folder. Inside, you will see several files. You will find the PortQry.exe file located right alongside the UI application ( PortQryUI.exe ).