mtu 값 변경하여 막힌 싸이트에 접속하기


1)cmd.exe를 관리자 권한으로 실행
2)현재 랜카드 상태 확인
netsh interface ipv4 show interface
**이더넷 색인 번호(10) 기억하여 아래 4번에서 사용한다
**mtu 값이 보통 1500으로 되어 있는데, 이 값을 400으로 변경하는 작업을 한다

3)최소 설정 가능한 mtu 값을 352로 설정하기
netsh interface ip set global minmtu=352

4)mtu 값을 400으로 설정하기
netsh interface ipv4 set subinterface “10” mtu=400 store=persistent

5)chrome 브라우저를 사용하여 차단된 https 싸이트에 접속하면 된다

** 참고로 Mac에서는 mtu 값을 500으로 설정한다
sudo ifconfig en0 mtu 500
참고 영상: https://youtu.be/3K8w2EKxapU

PowerShell Core 6.1 설치하기


1) Windows에서 설치
iex “& { $(irm https://aka.ms/install-powershell.ps1) } -UseMSI”

2) Linux에서 설치
wget -O – https://aka.ms/install-powershell.sh | sudo bash

3) 설치된 PowerShell 버전 확인하기
$psversiontable

4) Windows에서는 PowerShell Desktop version과 PowerShell Core 버전을 Switch하면서 사용 가능하다
powershell.exe
pwsh.exe
** Linux에서 PowerShell Core를 사용하면 그냥 pwsh만 입력하면 된다

5) PowerShell core에서 Azure 운영을 위한 Module 설치하기
Get-Module -ListAvailable
Get-Command | Measure-Object

Find-Module -Name az
Find-Module -Name az | Install-Module -AllowClobber

Get-Module -ListAvailable
Get-Command | Measure-Object

Windows Server를 시작하기 위하여 필요한 30개의 PowerShell 명령어


참고: https://tunnelix.com/30-basic-powershell-commands-to-start-with-windows-server/

Get-Module PSWindowsUpdate
Get-WindowsUpdate
Install-WindowsUpdate
Get-Hotfix

Get-host | select Version
$PSVersionTable

Get-EventLog system | where-object {$_.eventid -eq 6006} | select -last 10
Get-Service

Get-Module PSWindowsUpdate
Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize

Get-process
Get-NetFirewallRule
Get-NetIPConfiguration
Get-NetAdapterLso
Get-NetRoute
Get-NetTCPConnection | ? {$_.State -eq “Listen”}

Get-WmiObject win32_logicaldisk
Get-PhysicalDisk

Get-PhysicalDisk | Sort Size | FT FriendlyName, Size, MediaType, SpindleSpeed, HealthStatus, OperationalStatus -AutoSize

Get-PSDrive C | Select-Object Used, Free
Get-PSRepository
$Env:PSModulePath
$env:PSModulePath = $env:PSModulePath + “;C:\ModulePath”
Get-Module -ListAvailable
find-module -Name PendingReboot | install-module
Import-Module PendingReboot
Get-Command -Module PendingReboot
Invoke-WebRequest https://gallery.technet.microsoft.com/scriptcenter/Get-RebootHistory-bc804819/file/130620/2/Get-RebootHistory.zip -outfile Get-RebootHistory.zip

Expand-Archive -path ‘.\Get-RebootHistory.zip’ -DestinationPath ‘C:\Users\Administrator\Documents\WindowsPowerShell\Modules’
Get-Command -?
Get-Help -name Compress-Archive
Get-Help -name Compress-Archive -examples

man Compress-Archive
help Compress-Archive