Ad is not updating computer name
So, we want the information about the manufacturer of the computer, its model and serial number to be displayed in the Description field of the computer in Active Directory Users and Computers console.
This information can be obtained using the following WMI query: Now you have to write this information into the Description field of this computer in AD.
Vendor $name = (Get-WMIObject -Computer Name $computer Win32_Computer System Product).
Set the domain, username, password, and organization unit (OU) for joining the host to the domain.Otherwise you will be end up in a mess with non-functioning infrastructure.