[PowerShell]1. What is PowerShell
PowerShell 이란? Windows, Linux 그리고 MacOS에서 실행할 수 있는 스크립팅 언어이다. PowerShell이란? - PowerShell | Microsoft Learn PowerShell이란? - PowerShell 이 문서에서는 PowerShell 스크립팅 환경 및 해당 기능을
neosailer.tistory.com
[Powershell]2. Syntax
기본적인 Powershell의 문법은 아래와 같다. 구문 및 주석처리 Powershell은 스크립트 언어이기 때문에 따로 코드의 영역을 지정하는 양식이나 줄을 구분하는 기호가 없다. 한줄 주석은 sharp(#) 기호를
neosailer.tistory.com
[PowerShell]3.Inputs and Outputs
스크립트 실행 시 사용자에게 입력 값을 받아야 하는 경우 또는 결과물 및 데이터를 확인해야 하는 경우가 있다. 이 때 사용해야 하는 PowerShell의 입/출력 명령어에 대하여 알아보자. [입력 처리
neosailer.tistory.com
4. Variables(variable converting)
[PowerShell]4. Variables(variable converting)
PowerShell does not distingush variable types. Rather PowerShell automatically declare the data type of variable when it is created. Data type is determined by data input. Let's create variables by inputting data and figure out variable type with built-in
neosailer.tistory.com
[PowerShell]5. Controls(If statement)
When executing a script, there are cases to control computation or process accoding to result of pre-process or conditions. PowerShell provides "if" and "switch" state in the similar grammar of C language. ["if" Statement] If statement has two parts, evalu
neosailer.tistory.com
[PowerShell]6. Loops
Looping is a common programming concept used in PowerShell scripts to repeat a block of code mulitple times. It is the beauty of programming language. PowerShell provides three loop functions, for, foreach, while. [Loop] For The For loop function is used t
neosailer.tistory.com
[PowerShell]7. Functions
Function in programming lanugage is a reuseable block of code performing set of tasks. With a function in programing language, developer does not need to write the same code every time when executing a certain task, rather simply call a function with param
neosailer.tistory.com
[PowerShell]8. Exception(error) Handling
Scripts do not always go as intented. Errors in the middle of task can harm data reliability. For example, Active Directory user account inactivation script stops in the middle the task and it only partly removed AD groups which is related to Office 365 li
neosailer.tistory.com
9. Learning Projects
[PowerShell]9. Learning Projects - Finding prime numbers
A prime number is a whole number greater than 1 whose only factors are 1 and itself. For example, number 2 is a prime number because it can be divided by only 2 and 1. Howerver, since 4 can be divided by 1, 2 and 4, number 4 is not a prime number. Let's wr
neosailer.tistory.com
9. Learning Projects - Lottery generator
Korean lottery is a game to select 6 numbers out of number range from 1 to 45 without same number and regardless order. 1st winder is who get all 6 numbers matched which are randomly chosen by lottory machine. PowerShell provides "Get-Random" built-in comm
neosailer.tistory.com
- Calculator
- Password generator
- Tic-tac-toe game
- To do list
'ICT' 카테고리의 다른 글
[PowerShell] Saving Activie Directory Query Output to CSV (0) | 2023.03.20 |
---|---|
[Powershell]2. Syntax (0) | 2023.02.07 |
[ChatGPT] Automation: 주간식단표 자동 업로드 (0) | 2023.02.06 |
RAID(Reduntant Array of Independent Disk) (0) | 2023.01.30 |
[PowerShell]1. What is PowerShell (0) | 2023.01.13 |
댓글