Set proxy on Windows VMs while provisioning

Task-number: QTQAINFRA-1669
Change-Id: Ia6b5b668051642a3729d7c7c83c69d8797045847
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
Tony Sarajärvi
2018-01-02 12:58:13 +02:00
committed by Liang Qi
parent 3a3c6fb2b3
commit 54d8396d68
13 changed files with 128 additions and 1 deletions

View File

@@ -144,3 +144,11 @@ Function Execute-Command
exit 1
}
}
function isProxyEnabled {
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').proxyEnable
}
function getProxy {
return (Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings').proxyServer
}