Get-ADDomain | select domainMode, DistinguishedName
Get-ADForest | select forestMode
Raise the Domain Functional Level
Set-ADDomainMode -identity afd.ink -DomainMode Windows2012R2Domain -PassThru
Raise the Forest Functional Level
$Forest = Get-ADForest
Set-ADForestMode -Identity $Forest -Server $Forest.SchemaMaster -ForestMode Windows2012R2Forest -PassThru
Invoke-WebRequest -Uri "https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe" -OutFile "d:\vc++2013x64\vcredist_x64.exe"