Powershell : Domain Binding & Description
To bind a machine to the domain, rename it and put it in the desired OU:
<pre class="wp-block-code">```
Add-Computer -DomainName $FQDN -NewName $COMPUTERNAME -Credential $DOMAINBINDACCOUNT -OUPath "OU=SOMEOU, DC=test, DC=com" -restart
To replace an AD Computer object’s Description field:
``` $description = "This is a test description" $ADComputer = get-adcomputer-properties Description Set-ADComputer $ADComputer -Description "$($ADComputer.Description) $description" ``` ```