|
@@ -0,0 +1,37 @@
|
|
|
+# powershell
|
|
|
+
|
|
|
+> ์์คํ
๊ด๋ฆฌ๋ฅผ ์ํด ํน๋ณํ ์ค๊ณ๋ ๋ช
๋ น์ค ์ ๋ฐ ์คํฌ๋ฆฝํ
์ธ์ด์
๋๋ค.
|
|
|
+> ์ด ๋ช
๋ น์ด๋ PowerShell ๋ฒ์ 5.1 ์ดํ (๋ ๊ฑฐ์ Windows PowerShell์ด๋ผ๊ณ ๋ ํจ)๋ฅผ ์ฐธ์กฐํฉ๋๋ค. ๋ ์๋ก์ด, ํฌ๋ก์ค ํ๋ซํผ ๋ฒ์ ์ PowerShell (PowerShell Core๋ผ๊ณ ๋ ํจ)์ ์ฌ์ฉํ๋ ค๋ฉด `pwsh` ๋์ `powershell`์ ์ฌ์ฉํ์ธ์.
|
|
|
+> ๋ ๋ง์ ์ ๋ณด: <https://learn.microsoft.com/windows-server/administration/windows-commands/powershell>.
|
|
|
+
|
|
|
+- ๋ํํ ์ ์ธ์
์์:
|
|
|
+
|
|
|
+`powershell`
|
|
|
+
|
|
|
+- ์์ ์ค์ ์ ๋ก๋ํ์ง ์๊ณ ๋ํํ ์ ์ธ์
์์:
|
|
|
+
|
|
|
+`powershell -NoProfile`
|
|
|
+
|
|
|
+- ํน์ ๋ช
๋ น์ด ์คํ:
|
|
|
+
|
|
|
+`powershell -Command "{{echo 'powershell is executed'}}"`
|
|
|
+
|
|
|
+- ํน์ ์คํฌ๋ฆฝํธ ์คํ:
|
|
|
+
|
|
|
+`powershell -File {{๊ฒฝ๋ก/๋์/์คํฌ๋ฆฝํธ.ps1}}`
|
|
|
+
|
|
|
+- ํน์ ๋ฒ์ ์ PowerShell๋ก ์ธ์
์์:
|
|
|
+
|
|
|
+`powershell -Version {{๋ฒ์ }}`
|
|
|
+
|
|
|
+- ์์ ๋ช
๋ น์ ์คํํ ํ ์ ์ข
๋ฃ ๋ฐฉ์ง:
|
|
|
+
|
|
|
+`powershell -NoExit`
|
|
|
+
|
|
|
+- PowerShell์ ์ ๋ฌ๋๋ ๋ฐ์ดํฐ์ ํ์ ์ค๋ช
:
|
|
|
+
|
|
|
+`powershell -InputFormat {{Text|XML}}`
|
|
|
+
|
|
|
+- PowerShell์์ ์ถ๋ ฅ๋๋ ๋ฐ์ดํฐ์ ํ์ ์ค๋ช
:
|
|
|
+
|
|
|
+`powershell -OutputFormat {{Text|XML}}`
|