Win11中如何在wifi设置中打开热点?

Win11中如何在wifi设置中打开热点?
$connectionProfile = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetInternetConnectionProfile()
$tetheringManager = [Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($connectionProfile)

#Start Mobile Hotspot
$tetheringManager.StartTetheringAsync()

我使用这个 powershell 脚本(和任务计划程序)在启动时启用我的热点,并且它有效。不幸的是,它使用蓝牙而不是 wifi,这很烦人,因为我必须再次打开热点设置才能更改它。

如何使用无线上网设置为活动而不是蓝牙?

相关内容