Skip to content

Script is not language aware. #10

@zimbo86

Description

@zimbo86

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions