$beschreibung = (Get-ADComputer -Identity $env:COMPUTERNAME -Properties *).description
Set-CimInstance -Property @{Description = "$beschreibung" } -InputObject win32_operatingsystem
MDT-Deployment, PowerShell und interessante IT
$beschreibung = (Get-ADComputer -Identity $env:COMPUTERNAME -Properties *).description
Set-CimInstance -Property @{Description = "$beschreibung" } -InputObject win32_operatingsystem