Featured image of post [PowerShell] 79. ForEach-Object -Parallel(PowerShell 7+)

[PowerShell] 79. ForEach-Object -Parallel(PowerShell 7+)

PowerShell 7의 ForEach-Object -Parallel로 반복 작업을 스레드 기반으로 병렬 실행하는 법과 -ThrottleLimit, $using: 스코프 수정자로 외부 변수를 전달하는 법, 78장 Start-Job과의 성능·격리 차이를 정리한 Part 9 마지막 챕터다.

Featured image of post [PowerShell] 81. winget과 PowerShell 통합

[PowerShell] 81. winget과 PowerShell 통합

Windows 패키지 관리자 winget의 install/upgrade/search 명령을 PowerShell에서 호출하는 법과 Microsoft.WinGet.Client 모듈로 cmdlet 형태로 다루는 법, 80장 PackageManagement와의 역할 차이를 정리한 챕터다.

Featured image of post [PowerShell] 83. PowerShell Remoting 개념과 WinRM 활성화

[PowerShell] 83. PowerShell Remoting 개념과 WinRM 활성화

PowerShell Remoting이 WS-Management(WinRM) 프로토콜로 원격 컴퓨터에서 명령을 실행하는 원리와 Enable-PSRemoting으로 활성화하는 법, ComputerName 매개변수만으로 되는 명령과 진짜 Remoting의 차이를 정리한 Part 11 시작 챕터다.

Featured image of post [PowerShell] 84. Enter-PSSession — 대화형 원격 세션

[PowerShell] 84. Enter-PSSession — 대화형 원격 세션

Enter-PSSession으로 원격 컴퓨터에 대화형으로 접속해 프롬프트가 원격 컴퓨터로 바뀌는 원리와 Exit-PSSession으로 빠져나오는 법, 한 번에 하나의 대화형 세션만 가능하다는 제약, -Credential로 다른 계정을 쓰는 법을 정리한 챕터다.

Featured image of post [PowerShell] 85. Invoke-Command — 원격 명령 실행

[PowerShell] 85. Invoke-Command — 원격 명령 실행

Invoke-Command로 하나 또는 수백 대의 원격 컴퓨터에 한 번에 명령을 보내는 법과 -ComputerName/-Session의 차이, -AsJob으로 비동기 실행하는 법, $using: 스코프 수정자로 로컬 변수를 전달하는 법을 정리한 챕터다.

Featured image of post [PowerShell] 86. New-PSSession — 지속 세션 관리

[PowerShell] 86. New-PSSession — 지속 세션 관리

New-PSSession으로 원격 컴퓨터와의 연결을 여러 명령에 걸쳐 재사용하는 지속 세션을 만드는 법과 Get-PSSession/Remove-PSSession으로 관리하는 법, 85장 -ComputerName 방식과의 상태 유지 차이를 정리한 챕터다.