Skip to content

Conversation

Bilge
Copy link
Contributor

@Bilge Bilge commented Jan 31, 2024

Like #115 except using PowerShell instead of WMIC. Supported OOTB since Windows 8 (Windows 7 shipped with PowerShell v2, which doesn't seem to work with Select-Object; v3 minimum is required).

Advantages

  • Not deprecated.

Disadvantages

  • 45% slower than WMIC.

Recommendation

Don't merge until the latest version of Windows ships without WMIC enabled by default.

@Bilge Bilge changed the title Powershell Replaced WMIC nameserver lookup with PowerShell equivalent Jan 31, 2024
# Conflicts:
#	src/WindowsDnsConfigLoader.php
@trowski trowski merged commit 78eb3db into amphp:2.x Jan 19, 2025
6 checks passed
@Bilge Bilge deleted the powershell branch January 19, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants