$AnakartModeli = (Get-CimInstance -ClassName Win32_BaseBoard).Product
$RegistryYolu = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\OEMInformation"
if (-not ([string]::IsNullOrEmpty($AnakartModeli)) -and $AnakartModeli -ne "To be filled by O.E.M.") {
if (-not (Test-Path $RegistryYolu)) {
New-Item -Path $RegistryYolu -Force | Out-Null
}
Set-ItemProperty -Path $RegistryYolu -Name "Model" -Value $AnakartModeli -Type String -Force
}