다음을 통해 공유


about_PowerShell_ISE_exe

간단한 설명

powershell_ise.exe 명령줄 도구를 사용하는 방법을 설명합니다.

긴 설명

powershell_ise.exe 실행하면 Windows PowerShell ISE(통합 스크립팅 환경) 세션이 시작됩니다. Cmd.exe Windows PowerShell에서 실행할 수 있습니다.

Windows PowerShell ISE를 실행하려면 powershell_ise.exe, powershell_ise또는 ISE입력합니다.

Syntax

powershell_ise[.exe]
ISE
[-File]<FilePath[]> [-NoProfile] [-MTA]
-Help | ? | -? | /? Displays the syntax and describes the command-line switches.

매개 변수

-파일

Windows PowerShell ISE에서 지정된 파일을 엽니다. 매개 변수 이름("-File")은 선택 사항입니다. 둘 이상의 파일을 나열하려면 따옴표로 묶인 텍스트 문자열을 하나 입력합니다. 쉼표로 문자열 내에서 파일 이름을 구분합니다.

다음은 그 예입니다.

powershell_ise -File "File1.ps1,File2.ps1,File3.xml".

파일 이름 사이의 공간은 Windows PowerShell에서 허용되지만 Cmd.exe 같은 다른 프로그램에서 올바르게 해석되지 않을 수 있습니다.

이 매개 변수를 사용하여 Windows PowerShell 스크립트 파일 및 XML 파일을 비롯한 모든 텍스트 파일을 열 수 있습니다.

-MTA

다중 스레드 아파트를 사용하여 Windows PowerShell ISE를 시작합니다. 이 매개 변수는 Windows PowerShell 3.0에서 도입되었습니다. STA(단일 스레드 아파트)가 기본값입니다.

-NoProfile

Windows PowerShell 프로필을 실행하지 않습니다. 기본적으로 Windows PowerShell 프로필은 모든 세션에서 실행됩니다.

이 매개 변수는 서로 다른 프로필이 있는 시스템에서 실행되는 함수 및 스크립트와 같은 공유 콘텐츠를 작성할 때 권장됩니다. 자세한 내용은 about_Profiles참조하세요.

-도움말-?/?

powershell_ise.exe대한 도움말을 표시합니다.

예시

이러한 명령은 Windows PowerShell ISE를 시작합니다. 명령은 동일하며 서로 바꿔 사용할 수 있습니다.

PS C:> powershell_ise.exe
PS C:> powershell_ise
PS C:> ISE

이러한 명령은 Windows PowerShell ISE에서 Get-Profile.ps1 스크립트를 엽니다. 명령은 동일하며 서로 바꿔 사용할 수 있습니다.

PS C:> powershell_ise.exe -File .\Get-Profile.ps1
PS C:> ISE -File .\Get-Profile.ps1
PS C:> ISE .\Get-Profile.ps1

이 명령은 Windows PowerShell ISE에서 Get-Backups.ps1 및 Get-BackupInstance.ps1 스크립트를 엽니다. 둘 이상의 파일을 열려면 쉼표를 사용하여 파일 이름을 구분하고 전체 파일 이름 값을 따옴표로 묶습니다.

PS C:> ISE -File ".\Get-Backups.ps1,Get-BackupInstance.ps1"

이 명령은 프로필 없이 Windows PowerShell ISE를 시작합니다.

PS C:> ISE -NoProfile

이 명령은 powershell_ise.exe대한 도움말을 가져옵니다.

PS C:> ISE -Help

참고하십시오