Which are the results of these PowerShell_ISE.exe scripts?
# Check if a proxy is enabled and for proxy settings in the Windows Registry
$regPath = "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings"
$proxyEnabled = (Get-ItemProperty -Path $regPath).ProxyEnable
$proxyServer = (Get-ItemProperty -Path $regPath).ProxyServer
$proxyOverride = (Get-ItemProperty -Path $regPath).ProxyOverride
$envUserHttpProxy = [Environment]::GetEnvironmentVariable("HTTP_PROXY", [System.EnvironmentVariableTarget]::User)
$envMachineHttpProxy = [Environment]::GetEnvironmentVariable("HTTP_PROXY", [System.EnvironmentVariableTarget]::Machine)
$envUserHttpsProxy = [Environment]::GetEnvironmentVariable("HTTPS_PROXY", [System.EnvironmentVariableTarget]::User)
$envMachineHttpsProxy = [Environment]::GetEnvironmentVariable("HTTPS_PROXY", [System.EnvironmentVariableTarget]::Machine)
$envUserNoProxy = [Environment]::GetEnvironmentVariable("NO_PROXY", [System.EnvironmentVariableTarget]::User)
$envMachineNoProxy = [Environment]::GetEnvironmentVariable("NO_PROXY", [System.EnvironmentVariableTarget]::Machine)
$proxySettings = (Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings").AutoConfigURL
if ($proxyEnabled -eq 1) {
Write-Host "Proxy is enabled."
if ($proxyServer -ne $null) {
Write-Host "Proxy Server: $proxyServer"
if ($proxyOverride -ne $null) {
Write-Host "Proxy Exceptions: $proxyOverride"
}
}
} elseif ($proxyEnabled -eq 0) {
Write-Host "Proxy is disabled."
} else {
Write-Host "Proxy status is unknown."
}
if ($proxyServer -eq $null) {
Write-Host "No proxy settings found in the Registry."
}else {
Write-Host "Proxy server: $proxyServer"
}
if ($envUserHttpProxy -ne $null) {
Write-Host "HTTP_PROXY User Environment Variable: $envUserHttpProxy"
}
if ($envMachineHttpProxy -ne $null) {
Write-Host "HTTP_PROXY Machine Environment Variable: $envMachineHttpProxy"
}
if ($envUserNoProxy -ne $null) {
Write-Host "NO_PROXY User Environment Variable: $envUserNoProxy"
}
if ($envMachineNoProxy -ne $null) {
Write-Host "NO_PROXY Machine Environment Variable: $envMachineNoProxy"
}
if ($envUserHttpsProxy -ne $null) {
Write-Host "HTTPS_PROXY User Environment Variable: $envUserHttpsProxy"
}
if ($envMachineHttpsProxy -ne $null) {
Write-Host "HTTPS_PROXY Machine Environment Variable: $envMachineHttpsProxy"
}
if ($proxySettings -ne $null) {
Write-Host "PAC file is configured: $proxySettings"
}
[System.Net.WebRequest]::GetSystemWebProxy().GetProxy("https://cloud.uipath.com")