Created
August 24, 2024 05:46
-
-
Save rodeomachine/8814aaa143055ef64ae90e2751f20f5a to your computer and use it in GitHub Desktop.
オフライン環境のWindows11でモバイルホットスポットを強制的にONするPowerShellスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$W="登録済みWiFi名" | |
$c = [Windows.Networking.Connectivity.NetworkInformation,Windows.Networking.Connectivity,ContentType=WindowsRuntime]::GetConnectionProfiles()|Where-Object{ $_.ProfileName -like "*"+$W+"*" } | |
[Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager,Windows.Networking.NetworkOperators,ContentType=WindowsRuntime]::CreateFromConnectionProfile($c).StartTetheringAsync() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment