1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Windows11のモバイルホットスポットをオフライン環境で無理矢理オンにする方法

Posted at

国際線長距離フライトなどでインターネットに接続できない環境ではモバイルホットスポットを有効にできませんが、次のPowerShellで強制的にオンにできました。

登録済みWiFi名のところを「設定→ネットワークとインターネット→既知のネットワーク」一覧に出てくるもので置き換えてください。圏外であっても登録済みネットワークであれば何でもよさそうです。

$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()

参考:https://stackoverflow.com/questions/45833873/enable-windows-10-built-in-hotspot-by-cmd-batch-powershell

※Windows11 22H2のみ検証済み。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?