You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-Warning"Proxy Server $($ProxySettings.ProxyServer) configured in Internet Explorer may be used to connect to the OCI server!"
130
-
}
131
-
if ($ProxySettings.AutoConfigURL) {
132
-
Write-Warning"Proxy Server defined in automatic proxy configuration script $($ProxySettings.AutoConfigURL) configured in Internet Explorer may be used to connect to the OCI server!"
130
+
# TODO: Remove try/catch as soon as PowerShell 6 fixes OSVersion implementation
131
+
try {
132
+
if ([environment]::OSVersion.Platform -match"Win") {
Write-Warning"Proxy Server $($ProxySettings.ProxyServer) configured in Internet Explorer may be used to connect to the OCI server!"
138
+
}
139
+
if ($ProxySettings.AutoConfigURL) {
140
+
Write-Warning"Proxy Server defined in automatic proxy configuration script $($ProxySettings.AutoConfigURL) configured in Internet Explorer may be used to connect to the OCI server!"
141
+
}
142
+
}
133
143
}
144
+
catch {}
134
145
135
146
$Server=New-Object-TypeName PSCustomObject
136
147
$Server|Add-Member-MemberType NoteProperty -Name Name -Value $Name
@@ -151,34 +162,16 @@ function global:Connect-SGWServer {
0 commit comments