$GetManufactureStats = (Get-WmiObject Win32_ComputerSystemProduct | Select-Object -Property Vendor, Name, IdentifyingNumber, UUID)
$GetCompName = (Get-WmiObject Win32_ComputerSystem | Select-Object -Property DNSHostName, Manufacturer, Model, SystemType, TotalPhysicalMemory, UserName)
$STag = ($GetManufactureStats.IdentifyingNumber)
$CName = ($GetCompName.DNSHostName)

Write-Host 'STag:' $STag
Write-Host 'CName:' $CName

Rename-computer –computername $CName –newname "OPPS-"$STag –force –restart