mobilehostapot_on.bat
0.00MB
mobilehotspot_on.ps1
0.00MB

참고

https://jjam89.tistory.com/147

 

[Windows] 노트북 모바일 핫스팟 자동 실행(호스트된 네트워크 지원이 ''아니요'' 일 시 해결방법)

Batch File 생성 전 명령어 실행 해보기 관리자 권한으로 cmd 실행 아래의 명령어를 실행시킵니다. (앞의 $는 빼고 복사해주세요.) $ netsh wlan start hostednetwork //start hotspot 이미지의 cmd창과 실제 cmd창에

jjam89.tistory.com

 

윈도우 시작프로그램 폴더에 아래 두 파일을 넣는다.

 - 경로 : C:\Users\{user}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

 - 스크립트파일 : mobilehotspot_on.ps1

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

 - 실행파일 : mobilehostapot_on.bat

@echo off
Powershell.exe -noprofile -executionpolicy bypass -file "C:\Users\jkoogi\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\mobilehotspot_on.ps1"

+ Recent posts