Windows Server 2008 R2 Core의 기능/역할 설치 Etc.2009. 11. 19. 16:56
Powershell 설치
설치된 기능 쿼리
Dism /online /get-features /format:table
Powershell 설치를 위해 .NET Framework 2.0 설치
Dism /online /enable-feature /featurename:NetFx2-ServerCore
Powershell 설치
Dism /online /enable-feature /featurename:MicrosoftWindowsPowerShell
ServerManager, BestPractices 설치
Dism /online /enable-feature /featurename:ServerManager-PSH-Cmdlets
Dism /online /enable-feature /featurename:BestPractices-PSH-Cmdlets
Powershell 실행
c:\windows\system32\WindowsPowerShell\v1.0\powershell.exe
기능 및 역할 설치를 위해 ServerManager 모듈 Import
Import-Module ServerManager
설치된 기능 쿼리
Get-WindowsFeature | Where {$_.installed –eq $true}
기능 설치/제거 (예: Hyper-V Role)
Add-WindowsFeature Hyper-V
Remove-WindowsFeature Hyper-V