The below snip changes a remote computer description. I was wondering if it would be better to use invoke-cimMethod, but I’m not sure how to figure out what methods I can use with the Win32_OperatingSystem to change the description value.
These are the methods I see with Get-Member
Clone
Dispose
Equals
GetCimSessionComputerName
GetCimSessionInstanceId
GetHashCode
GetObjectData
GetType
ToString
$OSValues = Get-CimInstance -ClassName win32_operatingsystem -ComputerName $ComputerName $OSValues.Description = $ComputerDescription Set-CimInstance -InputObject $OSValues