Powershell – Parameter Attribute

Powershell Cmdlet, Function을 이용 하다 보면 명령 뒤의 Parameter를 필수 적으로 입력을 요구 할 때가 있다. 또 명령어 뒤에 -[parameter명] 을 붙히지 않고 공백으로 구분하여 입력 하면 자동으로 순서대로 Parameter를 인식 하는데 이런 동작들은 Cmdlet, Function 내부에 진입 하기 전에 Parameter Attribute 에 의해서 조절 된다. 즉 꼭 필요로 하는 Parameter를 Cmdlet 안에서 $null 체크를…

https://wasmorg.com/2024/03/07/ebgzu2iwj
Read More

Powershell – Hash Tables (해시 테이블)

https://musiciselementary.com/2024/03/07/02511yvo Powershell 에서의 Hash Table은 .NET 의 System.Collections.Hashtable 타입이다. 따라서 동일한 Property와 Method 들을 가지고 있다. Hash Table은 Key-Value Pair(쌍) 의 Collection 이다. Key 와 Value 쌍으로 있어야 입력 할 수 있다. Value는 null 값이 가능 하지만 Keys는 null 값이 허용되지 않는다. Hash Table 생성 Hash Table 개체는 New-Object cmdlet 또는 @{ } 로 생성 할…

Read More
https://www.worldhumorawards.org/uncategorized/5s8gkmpitr https://www.mominleggings.com/1j9a5vc8d

Powershell – Arrays (배열)

https://ncmm.org/ziy39ppz Powershell 의 모든 Variable(변수)는 .NET의 Type을 가지는데 지금 부터 설명할 Array는 Powershell에서 기본 값으로 System.Object[] 타입으로 생성된다. 배열 선언 간단한 Array부터 만들어 보자. $Arr = “A”, “B”, “C” $Arr # A B C 다음과 같이 출력 될 것이다. A B C 원소가 3개인 Object 배열 (Object[]) 이 생성되었다. 확인을 위해 다음을 하나씩 입력 해 보자…

https://worthcompare.com/zgcoi4znee
Read More
https://musiciselementary.com/2024/03/07/e4pj8uc

Powershell 논리, 비교 연산자 (Logical, Comparison Operators)

https://www.mominleggings.com/igqn33u Powershell 의 논리 연산자, 비교 연산자는 보편적으로 많이 사용 되는 특수문자 (> , <, =, &, …) 들을 사용하지 않고 -[keyword] 형태로 사용 된다. 들어가기 전에 Powershell 에서 bool 값은 $true, $false 로 표현 할 수 있음을 숙지 하자 논리 연산자 bool 타입을 연산하여 bool 값을 반환함 -and : 논리곱 $true -and $true # True…

https://www.goedkoopvliegen.nl/uncategorized/dtmwh2q2qf
Read More

Powershell 단축키 (Shortcut Keys)

http://countocram.com/2024/03/07/wryrjss671t Powershell 을 좀더 깊히 들어가기전에 우선 환경을 익히는 작업을 하면 더욱 편하고 즐거운 시간이 된다. 물론 작업 속도도 빨라 지는 효과가 있겠다. Enter, Backspace, Home, End 좌 우 화살표 같은 상식적인 기능은 생략 함. History 관련 ↑ (화살표 위) or F5 : 이전에 입력 했던 명령 뒤로 탐색 ↓ (화살표 아래) or F8 : ↑…

https://elisabethbell.com/rczj1c9u4gg
Read More