1.파워쉘 버전 확인 방법 C:\Users\Administrator\Documents하위에 WindowsPowerShell폴더가 없기 때문에 생성해야 합니다. 또한 폴더 생성 후 이동하여 Microsoft.PowerShell_profile.ps1파일도 생성
$HOST
2. Profile 환경 변경 (초기 환경 설정)
가. 파일 생성
방법 1)
$Profile
C:\Users\Administrator\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
### 위와 같이 환경 파일 위치가 표시 됩니다#####
방법 2)
Test-Path $profile
New-Item –path $profile –type file –froce |
가. PS1 파일 수정
Set-Location C: ## 시작위치
## 창크기 및 버퍼사이즈
$Shell = $Host.UI.RawUI
$size = $Shell.WindowSize
$size.width=70
$size.height=25
$Shell.WindowSize = $size
$size = $Shell.BufferSize
$size.width=70
$size.height=5000
$Shell.BufferSize = $size
## Alias
new-item alias:Note -value C:WindowsSystem32notepad.exe
'윈도우 > PowerShell' 카테고리의 다른 글
파워쉘 하위 버전 실행하기 (0) | 2014.05.18 |
---|---|
Hyper-V 모듈 설치 (0) | 2011.11.09 |