Windows 11 - 6ghz 热点

问题描述 投票:0回答:1

TL;DR:在这个论坛上找到了一些方便的代码,并在 powershell 中进行了修改和测试以启动移动热点。该脚本的重要部分是能够选择 6ghz 频段。有人对如何解决这个无线电限制问题有任何想法吗?我在澳大利亚,6ghz wifi 不受限制,Windows 也有我的位置。

[Windows.System.UserProfile.LockScreen,Windows.System.UserProfile,ContentType=WindowsRuntime] | Out-Null # Define functions. Not important to this question Add-Type -AssemblyName System.Runtime.WindowsRuntime $asTaskGeneric = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and $_.GetParameters()[0].ParameterType.Name -eq 'IAsyncOperation`1' })[0] Function Await($WinRtTask, $ResultType) { $asTask = $asTaskGeneric.MakeGenericMethod($ResultType) $netTask = $asTask.Invoke($null, @($WinRtTask)) $netTask.Wait(-1) | Out-Null $netTask.Result } Function AwaitAction($WinRtAction) { $asTask = ([System.WindowsRuntimeSystemExtensions].GetMethods() | ? { $_.Name -eq 'AsTask' -and $_.GetParameters().Count -eq 1 -and !$_.IsGenericMethod })[0] $netTask = $asTask.Invoke($null, @($WinRtAction)) $netTask.Wait(-1) | Out-Null } # Create tethering manager $connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile() $tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile) # Create configuration $configuration = new-object Windows.Networking.NetworkOperators.NetworkOperatorTetheringAccessPointConfiguration $configuration.Ssid = "Hotspot" $configuration.Passphrase = "Psswrd1234" $configuration.Band = 3 # Check whether Mobile Hotspot is enabled $tetheringManager.TetheringOperationalState # Set Hotspot configuration AwaitAction ($tetheringManager.ConfigureAccessPointAsync($configuration)) # Start Mobile Hotspot Await ($tetheringManager.StartTetheringAsync()) ([Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult])
它确实将频段设置为 6ghz(名称和密码经过审查):

但是它不会启用。我得到的powershell结果是:

(“关闭”是网络共享操作状态)

这个故事的稍微长一点的版本是,我有一台 Quest 3,我有兴趣了解 6ghz 在与 PC 的无线连接方面的表现。我目前有 5ghz wifi,在 200Mbps 设置下没问题,除非有大量细节的高运动场景(例如驾驶一辆拉力赛车,周围有很多树木和草地移动)。最好使用我电脑中已有的 6ghz 硬件,而不是花几百块钱去买一个 6ghz 路由器。

我在谷歌上搜索了删除或绕过无线电限制的方法,但没有帮助。我尝试使用tunnelbear 更改我的位置,并尝试将Windows 中的默认位置更改为其他没有 6ghz 限制的国家/地区。

这是 Windows 11 预览版本(金丝雀版本:25997.1010)(这就是我能够选择 6ghz 的方式(

$configuration.Band = 3

))任何帮助将不胜感激:-)

powershell wifi hotspot canary-deployment
1个回答
0
投票
如果您找到解决方案,请告诉我们。我对此也很好奇。同样的目的。

© www.soinside.com 2019 - 2024. All rights reserved.