如果不使用,Windows 10 移动热点会自动关闭。
如果我不使用它,它会在 5 或 10 分钟后自动将热点加热。
如何在移动热点中更改此设置?
小智 13
我有类似的问题。当我没有连接到我的笔记本电脑的 win10 移动热点时,它会自动关闭。
试图寻找移动热点的高级设置但没有找到,其他人建议关闭不正确的“网络适配器”的电源功能。
您需要更改热点虚拟适配器的设置,而不是网络适配器。
解决方案:
2a. R 单击 wifi 系统图标,然后单击网络和互联网设置。您可能需要点击移动热点选项,然后找到网络和共享中心
或者
2b. 控制面板、网络和共享中心。
小智 8
我已经创建了 PowerShell 脚本来打开尚未启用的移动热点。您可以将其另存为 .ps1 文件并将其添加到任务计划程序中(我已经使用了本指南)。这是脚本:
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
}
$connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()
$tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile)
if ($tetheringManager.TetheringOperationalState -eq 1)
{
"Hotspot is already On!"
}
else{
"Hotspot is off! Turning it on"
Await ($tetheringManager.StartTetheringAsync()) ([Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult])
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
34167 次 |
| 最近记录: |