1. 파워쉘 이란?

https://docs.microsoft.com/ko-kr/powershell/scripting/overview?view=powershell-7.2 

 

PowerShell이란? - PowerShell

이 문서에서는 PowerShell 스크립팅 환경 및 해당 기능을 소개합니다.

docs.microsoft.com

 

2. 파워쉘 명령어란?

https://docs.microsoft.com/ko-kr/powershell/scripting/powershell-commands?view=powershell-7.2 

 

PowerShell 명령이란? - PowerShell

PowerShell의 명령을 cmdlet(command-lets으로 발음)이라고 합니다.

docs.microsoft.com

 

3. 파워쉘 설치 방법

https://docs.microsoft.com/ko-kr/powershell/scripting/install/installing-powershell?view=powershell-7.2 

 

Windows, Linux 및 macOS에 PowerShell 설치 - PowerShell

Windows, Linux 및 macOS에 PowerShell을 설치하는 데 관해 알아봅니다.

docs.microsoft.com

 

4. 파워셀 스크립트 파일(ps1 파일) 만들기

1) 메모장에 스크립트 내용을 적은 후

2) txt -> .ps1으로 확장자 명을 바꿔준다.

 

5. 파워쉘 스크립트 실행 하기

ㄴ 방법1

1) cd 파일경로... 명령어 이용하여 ps1 파일의 경로로 이동 (또는 ps1파일 드래그 하여 경로 입력...??)

2) 다음과 같이 입력하여 실행

.\파일이름.ps1

 

ㄴ 방법2

우클릭후 powershell에서 실행 클릭!!

 

728x90

'IT > 윈도우 파워쉘 스크립트' 카테고리의 다른 글

윈도우 파워쉘 - 6  (0) 2022.05.12
윈도우 파워쉘 - 5  (0) 2022.05.12
윈도우 파워쉘 - 4  (0) 2022.05.12
윈도우 파워쉘 - 3  (0) 2022.05.12
윈도우 파워쉘 - 2  (0) 2022.05.12

+ Recent posts