Windows Server 2012 R2 기반의 VM Template 만들기.
1. Windows Server를 설치한 후 관리자 계정의 암호를 설정한다.

2. 로그온 시 서버 관리자를 자동으로 시작하지 않도록 설정


3, IE 보안 강화 구성을 사용하지 않도록 설정

Powershell로도 IE 보안 강화 구성을 사용하지 않도록 설정할 수 있다.
function Disable-IEESC
{
$AdminKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A7-37EF-4b3f-8CFC-4F3A74704073}”
$UserKey = “HKLM:\SOFTWARE\Microsoft\Active Setup\Installed Components\{A509B1A8-37EF-4b3f-8CFC-4F3A74704073}”
Set-ItemProperty -Path $AdminKey -Name “IsInstalled” -Value 0
Set-ItemProperty -Path $UserKey -Name “IsInstalled” -Value 0
Stop-Process -Name Explorer
Write-Host “IE Enhanced Security Configuration (ESC) has been disabled.” -ForegroundColor Green
}
Disable-IEESC
4. Windows Update를 사용하도록 변경한 후 Windows Update 진행


파워쉘로도 변경이 가능하다.
net start wuauserv
wuauclt /detectnow
5. 기능 설치 - 데스크탑 경험, 미디어 파운데이션, 잉크 및 필기 서비스


파워쉘로도 설치가 가능하다.
Install-WindowsFeature Desktop-Experience, Server-Media-Foundation, InkAndHandwritingServices

서버를 재부팅한다.
6. .Net Framework 3.5 설치


파워쉘로도 설치가 가능하다.
Install-WindowsFeature Net-Framework-Core -source "경로"

서버를 재부팅한다.
7. 원격 연결 설정을 허용으로 변경한다.

8. Bginfo 설정을 변경한다.
BGinfo가 설치된 폴더에 아래 내용으로 Launchbgi.bat 파일을 생성한다.
START C:\BgInfo\Bginfo.exe C:\BgInfo\bgconfig.bgi /timer:0 /accepteula /silent

BGInfo 폴더의 사용권한에 Users를 추가한 후 수정 권한을 설정한다.

C:\ProgramData\Startup 폴더에 Bginfo 바로 가기를 생성한다.

9. Sysprep를 진행한다.
C:\Windows\system32\sysprerp\sysprep.exe /oobe /generalize /shutdown