Azure-Samples / Azure-Samples/TestDeviceRegConnectivity

Script is not language aware.

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
35
Forks
14
PR merge metrics
No merged PRs in 30d

Description

### This issue is for a: (mark with an `x`)
```
- [ ] bug report -> please search issues before submitting
- [x ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
```

### Minimal steps to reproduce
>
Run script on a german OS

### Any log messages given by the failure
>

netsh winhttp show proxy returns on a German OS:

```
Aktuelle WinHTTP-Proxyeinstellungen:
DirectAccess (kein Proxyserver).`
```

The script filters on
`($global:ProxyServer -eq "DirectAccess (no proxy server).")`

which returns false and is incorrect in this scenario.

so please change this to sth more suiting query like:

`($global:ProxyServer -match ".*DirectAccess.*")`

### Expected/desired behavior
>
returns true, as no proxy server is used.

### OS and Version?
Server 2022 DE

### Versions
>

### Mention any other details that might be useful

> ---------------------------------------------------------------
> Thanks! We'll be in touch soon.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.