프로필을 만들기 전에 만들려는 프로필 유형을 알아야 합니다. 자세한 내용은 about_Profiles를 참조하거나 명령 창에 "get-help about_profiles
"를 입력하고 Enter 키를 누릅니다.
새 프로필을 만들려면
- 새 "Current user, Windows PowerShell ISE" 프로필을 만들려면 다음과 같이 입력합니다.
if (!(test-path $profile )) {new-item -type file -path $profile -force}
- 새 "All users, Windows PowerShell ISE" 프로필을 만들려면 다음과 같이 입력합니다.
if (!(test-path $profile.AllUsersCurrentHost)) {new-item -type file -path $profile.AllUsersCurrentHost -force}
- 새 "Current user, All Hosts" 프로필을 만들려면 다음과 같이 입력합니다.
if (!(test-path $profile.CurrentUserAllHosts)) {new-item -type file -path $profile.CurrentUserAllHosts -force}
- 새 "All users, All Hosts" 프로필을 만들려면 다음과 같이 입력합니다.
if (!(test-path $profile.AllUsersAllHosts)) {new-item -type file -path $profile.AllUsersAllHosts-force}
프로필을 편집하려면
-
프로필을 엽니다. 예를 들어 Current user, Windows PowerShell ISE 프로필을 열려면
psEdit $profile
을 입력합니다. -
프로필에 일부 항목을 추가합니다. 다음은 시작할 때 도움이 되는 몇 가지 예입니다.
- 출력 창의 기본 배경색을 파랑으로 변경하려면 프로필 파일에
$psISE.Options.OutputPaneBackground = 'blue'
를 입력합니다. $psISE 변수에 대한 자세한 내용은 Windows PowerShell ISE 스크립팅 개체 모델을 참조하십시오. - 글꼴 크기를 20으로 변경하려면 프로필 파일에
$psISE.Options.FontSize =20
을 입력합니다.
- 출력 창의 기본 배경색을 파랑으로 변경하려면 프로필 파일에
-
프로필 파일을 저장합니다. 파일 메뉴에서 저장을 클릭합니다. 다음에 Windows PowerShell ISE를 열 때 사용자 지정한 내용이 적용됩니다.
참고 항목