Featured image of post [PowerShell] 109. Test-Connection — ping 대응

[PowerShell] 109. Test-Connection — ping 대응

PowerShell의 Test-Connection이 전통적인 ping 명령을 객체 파이프라인 방식으로 대체하는 원리와 -Count/-Quiet/-Traceroute/-TcpPort 매개변수, PingStatus 객체의 속성을 정리한 Part 16 시작 챕터다.

Featured image of post [PowerShell] 11. Get-Member — 객체 구조 탐색

[PowerShell] 11. Get-Member — 객체 구조 탐색

Get-Member(별칭 gm)로 파이프라인 객체의 속성·메서드를 탐색하는 법과 -MemberType/-View 매개변수, psbase/psobject 같은 내재 멤버, Add-Member로 확장된 멤버의 관계를 정리한 챕터다.

Featured image of post [PowerShell] 111. Resolve-DnsName — DNS 질의

[PowerShell] 111. Resolve-DnsName — DNS 질의

PowerShell의 DnsClient 모듈 Resolve-DnsName이 nslookup 대신 A/AAAA/MX/TXT 등 다양한 레코드 타입을 객체로 조회하고 -Server로 특정 DNS 서버에 질의하는 방법을 정리한 챕터다.

Featured image of post [PowerShell] 112. Get-NetIPConfiguration/Get-NetAdapter

[PowerShell] 112. Get-NetIPConfiguration/Get-NetAdapter

네트워크 인터페이스의 IP·게이트웨이·DNS 설정을 요약해 주는 Get-NetIPConfiguration과 어댑터 하드웨어 상태(링크 속도, MAC 주소, 연결 상태)를 보여주는 Get-NetAdapter의 역할 차이를 층위별로 정리한 챕터다.

Featured image of post [PowerShell] 113. Invoke-WebRequest/Invoke-RestMethod

[PowerShell] 113. Invoke-WebRequest/Invoke-RestMethod

HTTP 응답 전체를 객체로 돌려주는 Invoke-WebRequest와 JSON/XML을 자동으로 파싱해 주는 Invoke-RestMethod의 차이, -Method/-Body/-Headers 매개변수로 REST API를 호출하는 방법을 정리한 챕터다.