Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Update the Description of a Windows Computer with PowerShell
# Update-Description
# Description: Update the Computer Description of a Windows Computer with PowerShell. The description is updated in both Active Direcotry and on the PC.
# Usage: UpdateDescription -computername 420XX-XXXX -description "First Last Desktop"
# URL:
# Author: AJ Acevedo
# Copyright (c) 2016 AJ Acevedo
# License: MIT -
# Version: v0.4
function UpdateDescription() {
$OSValues = Get-WmiObject -class Win32_OperatingSystem -computername $computername
$OSValues.Description = $description
Set-ADcomputer $computername -description $description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.