Changing the description of a PC can be done via script directly from a Domain Controller.
Below is the script to run:
# Define the variables
$DomainController = *INSERT DOMAIN CONTROLLER HERE*
$PCName = "PC NAME"
$Description = "DESCRIPTION"
# Connect to Active Directory
Import-Module ActiveDirectory
# Check if the PC exists in Active Directory
$PC = Get-ADComputer -Filter {Name -eq $PCName} -Server $DomainController
if ($PC -eq $null) {
Write-Host "The PC '$PCName' was not found in Active Directory."
} else {
# Set the computer description
Set-ADComputer -Identity $PCName -Description $Description -Server $DomainController
Write-Host "The description for PC '$PCName' has been set to '$Description'."
}
Replace "PC NAME" and "DESCRIPTION" with the values of the PC on which you want to make the change.