aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/windows/helpers.ps1
diff options
context:
space:
mode:
authorTony Sarajärvi <tony.sarajarvi@qt.io>2018-01-02 12:58:13 +0200
committerLiang Qi <liang.qi@qt.io>2018-02-23 21:00:11 +0000
commit54d8396d681c97ace18e2710394b8b34fa8f0411 (patch)
tree7140a56a74ffcf3c8ef60740f159423b3d63b55d /coin/provisioning/common/windows/helpers.ps1
parent3a3c6fb2b37613805ca5a8a3f1adb8d146c66224 (diff)
Set proxy on Windows VMs while provisioning
Task-number: QTQAINFRA-1669 Change-Id: Ia6b5b668051642a3729d7c7c83c69d8797045847 Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
Diffstat (limited to 'coin/provisioning/common/windows/helpers.ps1')
-rw-r--r--coin/provisioning/common/windows/helpers.ps18
1 files changed, 8 insertions, 0 deletions
diff --git a/coin/provisioning/common/windows/helpers.ps1 b/coin/provisioning/common/windows/helpers.ps1
index b24de870..9c6706a2 100644
--- a/coin/provisioning/common/windows/helpers.ps1
+++ b/coin/provisioning/common/windows/helpers.ps1
@@ -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
+}