Windows °íÁ¤ ³×Æ®¿öÅ© ¼³Á¤ ÀÚµ¿È­ & ¿ÀÇÁ¶óÀÎ °­Á¦ ÇÖ½ºÆÌ ½Ãµ¿ Powershell ½ºÅ©¸³Æ®

Ansyncic   
   Á¶È¸ 4210   Ãßõ 1    

Utils.7z (1.7K), Down : 11, 2019-11

제가 노트북에서 사용하는 스크립트들입니다 이곳 저곳에서 짜집기해서 만들었습니다. (첨부파일 확인)


ForceRunHotspotKR.ps1

hostednetwork 기능(netsh wlan show drivers에서 확인 가능)을 무선랜 드라이버에서 지원하지 않아도 

오프라인 상태에서 핫스팟을 강제로 시동할 수 있습니다.

HotspotRegistry.reg

윈도우 버전마다 적용 여하가 다를 수 있겠으나 오프라인 핫스팟 상태가 연장 유지되도록 레지스트리를 변경합니다. (추가적으로 무선랜카드의 절전 설정을 해제해주시면 좀 더 확실합니다)

* Windows10 핫스팟 기능: 온라인 상태에서만 켤 수 있고 오프라인 상태가 되면 일정 시간뒤 자동 종료됩니다.


NetworkConfig.ps1

IPV4 네트워크 환경을 한번에 바꿔줍니다. 빨간 색 부분을 본인 네트워크 어댑터 이름으로 변경해서 사용하여야 합니다

코드 커스터마이징으로 상당히 편리하게 사용이 가능할 것으로 생각됩니다. (적용이 확실한 코드만으로 구성했습니다)

http://developerworrick.blogspot.com/2015/11/pc.html



# Self-elevate the script if required

if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {

 if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {

  $CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments

  Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine

  Exit

 }

}


# http://developerworrick.blogspot.com/2015/11/pc.html

echo "1. Dynamic (Windows Default) 2. PC to PC Main 3. PC to PC Sub"

$switchType = Read-Host "번호를 입력하세요"

$i = Get-WmiObject win32_networkadapterconfiguration -filter "Description='Realtek PCIe FE Family Controller'"

if ($switchType -eq "1"){

    $i.EnableDHCP()

    Set-DNSClientServerAddress -interfaceIndex $i.InterfaceIndex -ResetServerAddresses

} elseif ($switchType -eq "2"){

    $i.EnableStatic("192.168.0.1", "255.255.255.0")

    $i.SetGateways("", 1)

    Set-DNSClientServerAddress -interfaceIndex $i.InterfaceIndex -ServerAddresses @("192.168.0.1", "")

} elseif ($switchType -eq "3"){

    $i.EnableStatic("192.168.0.$(Read-Host "Subnode IP (Except 1)")", "255.255.255.0")

    $i.SetGateways("192.168.0.1", 1)

    Set-DNSClientServerAddress -interfaceIndex $i.InterfaceIndex -ServerAddresses @("192.168.0.1", "")

}



서명
ªÀº±Û Àϼö·Ï ½ÅÁßÇÏ°Ô.


PDS
Á¦¸ñPage 2/76
2014-05   4441999   Á¤ÀºÁØ1
2015-12   998560   ¹é¸Þ°¡
2023-10   31012   »õÇϾᱸ¸§
2023-09   45728   ¹é·æ
2023-09   52543   Á¦¿ÂÇÁ·Î
2023-09   49084   ±èÀå¿ì
2023-09   43063   ¹ÌÄ£°¨ÀÚ
2023-08   39227   ´Ù·ÕÀÌ
2023-08   47418   Á¦¿ÂÇÁ·Î
2023-08   30618   ÀÌõdz
2023-08   28423   »õÃÑ
2023-08   29347   ¹ÌÄ£°¨ÀÚ
2023-07   37830   MikroTikÀÌÁø
2023-07   28921   ²Ü¹úlÃÖÀÎÇõ
2023-07   15589   Noobmaster69
2023-07   19333   °£Àå°ÔÀå
2023-07   17602   »õÃÑ
2023-07   16932   ºÀ·¡
2023-07   18357   ±è´ö¿µ
2023-06   24885   µ¿·Â
2023-06   26417   ´Ù·ÕÀÌ
2023-06   22350   ´Ù·ÕÀÌ