欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Win11怎么設(shè)置開機自動開啟Wifi熱點?Win11 Wifi熱點開機啟動設(shè)置技巧

  發(fā)布時間:2023-01-30 10:49:53   作者:佚名   我要評論
Win11怎么設(shè)置開機自動開啟Wifi熱點?如果我們的電腦自帶無線網(wǎng)卡,就可以在連接有線網(wǎng)絡(luò)時通過開啟熱點的方式讓其他用戶連接到wifi網(wǎng)絡(luò)中來,下面我們就來看看Win11 Wifi熱點開機啟動設(shè)置技巧

有些使用Win11系統(tǒng)的用戶想設(shè)置wifi熱點開機啟動,但是不知道怎么設(shè)置,這篇文章是本站給大家分享的方法。

1、首先,按鍵盤上的【 Win + X 】組合鍵,或右鍵點擊任務(wù)欄上的【Windows徽標(biāo)】,在打開的右鍵菜單項中,選擇【終端(管理員)】;

2、用戶賬戶控制窗口,你要允許此應(yīng)用對你的設(shè)備進(jìn)行更改嗎?點擊【】;

3、管理員:Windows PowerShell窗口,輸入并執(zhí)行以下命令:

set-executionpolicy remotesigned

4、打開文件資源管理器,并在地址欄輸入:

%appdata%\Microsoft\Windows\Start Menu\Programs\Startup

5、打開的文件夾中,空白處,點擊【右鍵】,在打開的菜單項中,選擇【新建文本文檔】;

6、新建的文本文檔窗口,輸入以下內(nèi)容:

powershell -executionpolicy remotesigned -file

"%appdata%\Microsoft\Windows\Start Menu\Programs\pondsihotspot.ps1"

exit

7、點擊左上角的【文件】,在打開的下拉項中,選擇【另存為】;

8、另存為窗口,注意兩個地方:1)文件名填入以【.bat】結(jié)尾的名稱,保存類型選擇【所有文件】2)編碼選擇【ANSI】最后點擊【保存】。

9、再打開文件資源管理器,并在地址欄輸入:

%appdata%\Microsoft\Windows\Start Menu\Programs

10、打開的文件夾中,空白處,點擊【右鍵】,在打開的菜單項中,選擇【新建文本文檔】;

11、新建的文本文檔窗口,輸入以下內(nèi)容:

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])
}

再點擊左上角的【文件】,打開的下拉項中,選擇【另存為】;

12、另存為窗口,注意兩個地方:

1)文件名填入以【.ps1】結(jié)尾的名稱,保存類型選擇【所有文件

2)編碼選擇【ANSI】最后點擊【保存】。

最后運行【wifi.bat】,測試能否打開熱點。

以上就是Win11 Wifi熱點開機啟動設(shè)置技巧,希望大家喜歡,請繼續(xù)關(guān)注腳本之家。

相關(guān)推薦:

windows11怎么查看wifi密碼? win11查看wifi密碼的技巧

Win11任務(wù)欄不顯示wifi圖標(biāo)怎么辦? win11網(wǎng)絡(luò)圖標(biāo)不見的解決辦法

相關(guān)文章

最新評論