Powershell

Set Computer Description With Powershell

Sccm-Powershell-Automation

#Description Uygulanmasi (Apply)

$Computerlist = get-content C:\servers\desc.txt

Foreach ($computer in $Computerlist)

{

$value = @{Description = ‘onuromertunc‘}

Set-CimInstance -Query ‘Select * From Win32_OperatingSystem’ -Property $value -ComputerName $computer -PassThru

}

#Description Kontrolu (Check)

$Computerlist = get-content C:\servers\desc.txt

Foreach ($computer in $Computerlist)

{

(Get-CimInstance -Query ‘Select * From Win32_OperatingSystem’ -ComputerName $computer).Description

}