Azure-Samples / Azure-Samples/TestDeviceRegConnectivity

Script is not language aware.

Aperta
#10 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PowerShell
Stelle
35
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Individua lo script PowerShell che analizza l’output di `netsh winhttp show proxy`, quindi esamina come viene confrontato `$global:ProxyServer`. Riproduci il comportamento con l’esempio di Server 2022 in tedesco e verifica che il risultato senza proxy venga riconosciuto per l’output localizzato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
powershell
Ambito
networking
Tipo di issue
Funzionalità
Difficoltà
2/5
Tempo stimato
1-3 ore
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.