Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Setting server descriptions

$
0
0

 

I wrote a simple powershell script that goes out and grabs the computer description.
The one that you can enter under the "Computer name" tab in my computer properties.
My company enters alias' and brief functions of each server in there.

Here is the script

$ServerList = Get-Content ./computers.txt
foreach ($Server in $ServerList)
{
      #Echo back current server
      get-WmiObject -computer $Server -query "select Description from Win32_OperatingSystem" | select-object Description
      }

Simple. grabs the list of names that we want to use from the text file      and then returns it. 
I just output it to another text file later.

Is there a way to reverse that and make it to where you can push a list of descriptions remotely?

Please help.

 


Viewing all articles
Browse latest Browse all 10624

Trending Articles