Windows Server 2012 R2: 쉽게 도메인 가입하기

http://www.itnotes.eu/?p=1998 사이트 참고. 이것저것 짜맞춘 스크립트

먼저 DNS에 DC 2대를 추가

clip_image001[9]

$ipv4dns1 = “192.168.0.20”;
$ipv4dns2 = “192.168.0.21”;
Get-DnsClientServerAddress -InterfaceAlias 이더넷 | Set-DnsClientServerAddress -ResetServerAddresses
Set-DNSClientServerAddress -InterfaceAlias 이더넷 -ServerAddresses (“$ipv4dns1″,”$ipv4dns2”)

(영문 버전이라면 InterfaceAlias에 Ethernet 을 입력)

clip_image002[7]

잘 된다. (관리자 권한이 필요)

———————————————–

컴퓨터 이름 변경 후 재시작

clip_image003[7]

Rename-Computer 컴퓨터이름 –restart

clip_image004[7]

컴퓨터 이름 변경 후 재시작

——————————————————-

도메인 가입

$domain = “도메인명.kr”
$password = “비밀번호” | ConvertTo-SecureString -asPlainText -Force
$username = “$domain\계정명”
$credential = New-Object System.Management.Automation.PSCredential($username,$password)
Add-Computer -DomainName $domain -Credential $credential

실제 사용하는 모습

clip_image006[7]

도메인 로그인

이것도 살펴보세요!

메인 컴퓨터 윈도우 재설치: 프로그램 설치용 winget 스크립트, 그 외 프로그램들(기록용)

마이크로소프트365https://office.com Hyper-V 설치 via. https://learn.microsoft.com/ko-kr/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All 윈겟(Winget) 프로그램 자동 설치 스크립트 …

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다