Messing about with IT

Category: Windows 7

Set the computer description remotely using PowerShell

Here’s a quick PowerShell script which allows you to set the computer description remotely.

You’ll need to run this in a PowerShell window with administrative rights for the remote PC.

$RemotePC = Read-Host -Prompt 'Input the remote computer name e.g. PC0123'
$RemoteDescription = Read-Host -Prompt 'Input the new description for the remote computer'

$PC = Get-WmiObject -class Win32_OperatingSystem -computername $RemotePC
$PC.Description = $RemoteDescription


© 2024 Tech Explorer

Theme by Anders NorénUp ↑