How to add "Computer Description" locally to 300 Servers in our domain via PowerShell.

I'd like to use Powershell to add "Computer Description" locally to 300 Servers in domain.
I found a solution here which works but it adds "Computer Description" only to a single computer.
http://social.technet.microsoft.com/Forums/windowsserver/en-US/a777f07c-f9be-4eb5-8788-de7e5c068411/changing-computer-descriptions-remotely-using-powershell?forum=winserverpowershell
I do have a CSV file with two column headers "Server" and "Description" containing Computer Description for all 300 Servers. 
I'm new to Powershell and would appreciate a step by step method.
Thanks.
st

Hi Mike Laughlin,
Your Script worked beautifully on most Servers.
There were some Servers on which it did not work. It showed this error in red color:
Get-WmiObject : The RPC server is unavailable. (Exception from HRESULT:
0x800706BA)
At line:2 char:17
+     $OSValues = Get-WmiObject -Class Win32_OperatingSystem -ComputerName
$_.Serv ...
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], COMExcept
   ion
    + FullyQualifiedErrorId : GetWMICOMException,Microsoft.PowerShell.Commands
   .GetWmiObjectCommand
Property 'Description' cannot be found on this object; make sure it exists and
is settable.
At line:3 char:5
+     $OSValues.Description = $_.Description
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : PropertyNotFound
You cannot call a method on a null-valued expression.
At line:4 char:5
+     $OSValues.Put()
+     ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull
Hi tommymaynard,
Should I now try your Script ?

Similar Messages

  • How to add apps (free or paid apps) to my iTunes account (via iTunes on PC) for later download on iPad?

    How to add apps (free or paid apps) to my iTunes account (via iTunes on PC) for later download on iPad?
    In App Store, some apps may go on sale (become reduced in price or completely free), and these offers are usually available for limited time. I may want some of these apps but can’t download & install them immediately on my iPad for certain reasons (e.g. lacking strong Wi-Fi coverage or lacking free space on iPad or iPad is out of my reach).
    How to purchase these apps from my PC via iTunes, to be added to my account and become available for me to download on iPad later?

    Deleting from your computer is not necessary and I would not advise it since again it's wise to have a backup. But otherwise, yes, once you make a purchase from any source, the app should in the future be available for downloading from the Purchased area in the iTunes Store app on your iPad. This presumes of course that the developer of the app has not removed it.
    One note:
    delete the downloaded app file and this will remove it from my PC (and automatically become removed from my iTunes library)
    This is the reverse of the correct procedure. If you really insist on removing the app from your computer, delete it from within iTunes. iTunes will ask if you also want to move the app file to the trash. Deleting the app file manually will not automatically remove it from your iTunes library.
    Regards.

  • Cisco ISE: How to add a description of an Internal Endpoint

    Hello,
    In ACS 5, when adding an Internal Hosts, we could add a description of the host, in addition to the MAC address.
    In ISE, there is no such description field available. However, it present in the Internal User but not in Internal Hosts.
    How can we do to add description of MAC address device ?
    Many thanks,
    David

    is this what you are looking for , if not let me know

  • How to add a Description Column in the Content Panel (Bridge CS5)

    Hi,
    Is it possible to add a Description Column in the Content Panel. If so, how?
    I'm talking about the Description from the IPTC Core data and I'm using Bridge CS5.
    Thanks in advance,
    Frank

    This is the screenshot of the Metadata Workspace with the Content Panel (not Metadata Panel). As you can see it shows Name, Label, Keywords etc. but it's not possible to show Description in that list as a column.
    I still agree that it would be a big bonus if you could alter this workspace with description field (even with more lines etc) but what Curt shows you might be an alternative. I couldn't help noticing that you have not created your own custom workspaces.
    Try and play with this. You have the option to divide the window in 3 columns max but you can create different panels as a row in 1 column.
    Grabbing a tab and move it to a new location until a single blue line appears (between the borders, a bit tricky). A vertical blue line means as a column and a horizontal line means a row. A surrounding blue line means same panel but adding as a tab. You can rearrange the tabs by dragging to left or right. under the menu window you can select which panels are visible or use right mouse click menu on top of a panel to choose.
    Sadly enough only 3 columns and only one panel of it's kind per workspace, but you can resize the panels also to your own workflow needs.
    In Bridge preferences you can change the colors for background in the general tab and in the metadata tab you can select what info to view in certain sections. Personally I have set my IPTC to view only description, keywords, date created and a few other subjects.
    That is the nice thing about Bridge, creating custom workspaces, save them and being able to recreate them without problems :-)
    I attach some screenshot of my daily workflow (with the luxury of having a 30' screen) but there are plenty of other options possible, don't forget to name and save your workspace.

  • How to add jfxrt jar locally?

    Hi,
    I'm using JavaFX 2.0 and Eclipse. I wrote a Java program which uses JavaFX but to use JavaFX I've added an external jar (jfxrt.jar) to the classpath, from the C:\Program Files\Oracle\JavaFX 2.0 Runtime\lib folder.
    But the app I wrote is for college coursework and I want to submit it today, and the people who mark it need to be able to compile the app. Since they probably don't have jfxrt.jar in the same location, how can I make it local so that they can compile it?
    I tried copying jfxrt.jar to the project directory and adding it as a local jar but this didn't work - I got a fatal error: EXCEPTION_ACCESS_VIOLATION
    Thanks for any advice!

    Well, if they want to compile it they need to add it to their classpath. It's basically just the same process as with specifing the JDK you want to compile sources with.
    Their JDK is probably also another version and in another location than yours, but you would never give them yours or add your JDK as local dependency to your project, so that they can compile it.
    The same goes for jfxrt.jar.
    Just tell them, they have to compile it with JDK 7 and they need jfxrt.jar in their classpath which can be found in the JDK folder.

  • How to add a search engine manually to Firefox. (No, not via add ons)

    How to add a search engine manually to Firefox?
    For example, what should I do add a custom search engine? It is not available via add-ons. When I go to the search page, Firefox doesn't detect it and it doesn't prompt me or allow me to add it as a search provider. I am looking for options similar to that in Chromium browser.
    let's say for instance, if I want to add redhat bugzilla to my search providers, I can go to search settings and just add https://bugzilla.redhat.com/buglist.cgi?quicksearch=%s
    Is there any similar option available in Firefox?

    I use these;
    '''[https://addons.mozilla.org/en-US/firefox/addon/add-to-search-bar/ Add to Search Bar]''' {web link}
    Make any pages' search functionality available in the Search Bar
    '''[https://addons.mozilla.org/en-US/firefox/addon/context-search/ Context Search]''' {web link}
    Expands the context menu's 'Search for' item into a list of
    installed search engines, allowing you to choose the engine
    you want to use for each search.
    '''[https://addons.mozilla.org/en-US/firefox/addon/searchthissite/ SearchThisSite]''' {web link}
    Allows you to search the website currently viewed with
    the website's internal search engine (and not the default
    FF search engine or an external engine)

  • How to add the Partners in parties involved for the campaign creation via code

    Hello Experts,
    We have a requirement wherein we are creating the coupon campaign. We need to add few partners under Parties involved. Can anyone help me as this is different from other CRM order creation.
    Thanks,
    Mayank

    Hi Mayank,
    A working answer is given by Manasa Veena in thread How to add a new partner to a Marketing Campaign.
    It's the same way by creating a related entity CPGPartnerRel. Please check the same.
    Thanks,
    Faisal

  • Asdoc how to add a custom local namespace with manifest file?

    Hi there,
    I use the flex 4 beta1 sdk to test the following:
    I have:
    MainScreen.mxml:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/halo"
        xmlns:views="com.xyz.core.view.components.*"
        >
        <views:AbcView id="abcView" right="20" />
    </s:Group>
    I tried to use a manifest file which seems to be how to handle this kind of situation (using ant):
        <arg line="-namespace views ${manifest.file}"/>
        <arg line="-doc-namespaces views"/>
    the manifest.xml contain the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <componentPackage>
               <component id="AbcView" class="com.xyz.core.view.components.AbcView" />
    </componentPackage>
    when I compile asdoc return the following error:
    ...MainScreen.mxml(52):  Error: Type was not found or was not a compile-time constant: AbcView
    Any idea how I can force asdoc to add/recognize AbcView.mxml ? Is my use of manifest file correct in this situation?
    Thank you in advance for your help.
    Best regards.
    maddec

    Hello,
    >Do you have the source path defined?
    yes definitely.
    >and does it contains the folder that is parent of com.xyz.core.view.components ?
    yes absolutely
    >Can you post your complete call to asdoc?
    Please find below the ant task I use:
    Thank you very much for your help.
    <?xml version="1.0" encoding="UTF-8"?>
    <project name="asdoc" default="main" basedir=".">
    <!--
        Properties Definitions
    -->
        <!-- The Location of Flex on your Computer -->
        <property name="Flex.dir" location="C:\Program Files (x86)\Adobe\Flex Builder 3 Plug-in"/>
        <!-- The Location of FlexSDK on your Computer -->
        <property name="FlexSDK.dir" location="${Flex.dir}\sdks\4.0.0.7219"/>
        <!-- <property name="FlexSDK.latest.build.dir" location="${Flex.dir}\sdks\4.0.0.12412"/> -->
        <!-- The Location of ASDocs on your Computer -->
        <property name="asDocs.exe" location="${FlexSDK.dir}\bin\asdoc.exe"/>
        <!-- main path info -->   
        <!--
            The Location of your Application Classes on your Computer
            NOTE: This Path should be relative to the build.xml file.
            NOTE: ${basedir} is an ant property that represents the directory holding the build.xml file
            NOTE: I have encountered issues with this folder containing Spaces
        -->
        <property name="AppClasses.dir" value='-doc-sources "${basedir}/src"'/>
        <property name="asdoc.source.paths" value='-source-path "${basedir}/src/"' />
        <!-- configs -->
        <property name="asdoc.config" value='-load-config="${FlexSDK.dir}/frameworks/flex-config.xml"' />
        <property name="sp.config" value='-load-config+="${basedir}/conditionalCompil.xml"' />
        <!-- additional path info -->   
        <property name="source.path.srcShared" value='-source-path+="D:/analogdesign/Clients/Minsh/flash/GIT-sources/minsh-flex-widget/s rcShared"' />
        <property name="libs.path" value='-external-library-path="${basedir}/libs"' />
        <!-- custom components -->
        <property name="manifest.file" location="${basedir}\ant\customCpnsManifest.xml" />
        <!-- branding data -->
        <property name="window.title" value='-window-title="Minsh API Documentation"' />
        <property name="main.title" value='-main-title="Minsh API Documentation"' />
        <!--
            The Location you wish to output to on your Computer
            NOTE: I have encountered issues with this folder containing Spaces
            NOTE: This location gets DELETED and re-generated each time the build is run
        -->
        <property name="output.dir" location="${basedir}\output\AppDocs"/>
        <property name="asdoc.output" value='-output="${output.dir}"' />
    <!--
        Execute the ASDoc Compile
    -->
    <target name="main" depends="clean,compile" description="full build of asdocs"/>
    <!--
        DELETE the existing output folder and files and then re-generate the output folder
    -->
    <target name="clean">
        <delete dir="${output.dir}" failOnError="false" includeEmptyDirs="true"/>
        <mkdir dir="${output.dir}"/>
    </target>
    <!--
        Run the ASDoc executable and generate the ASDocs to the new output folder
    -->
    <target name="compile">
        <exec executable="${asDocs.exe}" failonerror="true">
            <arg line="${asdoc.config}"/>
            <arg line="${sp.config}"/>
            <arg line="${asdoc.source.paths}"/>
            <arg line="${AppClasses.dir}"/>
            <arg line="${libs.path}"/>
            <arg line="${source.path.srcShared}"/>
            <arg line="-namespace views ${manifest.file}"/>
            <arg line="-doc-namespaces views"/>
            <arg line="${window.title}"/>
            <arg line="${main.title}"/>
            <arg line="${asdoc.output}"/>
        </exec>
    </target>
    </project>
    Best regards.
    maddec

  • How to add computer to Intune group during client deployment?

    I'm deploying the Windows Intune client as a task sequence in MDT and using Intune to deploy Office 2010. 
    How can I automatically add the newly imaged computer to a Windows Intune group during the client deployment so that Intune will begin pushing the required software immediately?
    Thanks.
    Jeff Guillet, MVP, MCITP:Enterprise Messaging Administrator, MCSE, CISSP | http://www.expta.com
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

    Hi Jeff,
    You have 3 options.
    1.  Create a group that includes all computers as the parent
    2.  Create a group based on a specific domain the computers belong to
    3.  Create a group based on a specific OU the computers belong to.
    Currently that's the only dynamic way to have computers automatically join a device group upon enrollment.
    Thanks,
    Jon L. - MSFT - This posting is provided "AS IS" with no warranties and confers no rights.

  • Psexec- How to add computer name to log file.

    Hi Using this command to get serial number of machines. 
    psexec @computerslist.txt wmic bios get serialnumber >>log.txt
    Log file as:
    Serial number 
    xyz12345 
    Serial number 
    abc98765
    How can i add the computer name to co-relate to the serial number. 

    Hi,
    Do you need any other assistance? Is there any update from satyajit comments?
    Thanks.
    Dharmesh Solanki
    TechNet Community Support

  • How to add a description to an iphoto book

    I used the description box in iphoto and labeled my picture.  i would like to keep the description and show it when I add it to my iBook that I want to publish. Can you tell me how to do this

    is this what you are looking for , if not let me know

  • How to add a new Local Variable for DataBase Logging?

    Hello
    I need to add a Local sequence variable to my STEP_RESULT table, i know i need to modify the schema by adding a new column but not sure on what to write in "Expression" to access the value of local variable. 
    Please reply asap, as its a little urgent.
    Regards
    Nitin Goel

    Hi
    you can read this here:
    http://digital.ni.com/public.nsf/allkb/F5ADBC61222343B586256CE00055E6D6?OpenDocument
    Regards
    DianaS

  • CATS via ESS - how to add WBS description field

    Hi folks,
    I've configured a new time profile which we will be using to integrate with Project System.  We can enter the WBS number via the portal but I would also like to show a field which will automatically default to the description associated with the wbs number.
    There seem to be a few user exits available but I'm not sure which one to use.
    CATS0009 CATS: Customer-Specific Text Fields in Data Entry Section
    Will this allow me to add the WBS description field as an additional input field via CAC2?
    Any help would be much appreciated.
    thanks,
    Ann

    CATS0009 CATS: Customer-Specific Text Fields in Data Entry Section
    this is it
    data: output(8) type n,
          rproj(8) type n.
    IF CATSD_IMP-RPROJ IS INITIAL.
    CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT'
      EXPORTING
        INPUT           = CATSD_IMP-posid
    IMPORTING
        OUTPUT          = output
    EXCEPTIONS
       NOT_FOUND       = 1
       OTHERS          = 2.
    rproj = output.
    ENDIF.
    IF NOT CATSD_IMP-RPROJ IS INITIAL.
       rproj =  CATSD_IMP-RPROJ.
    else.
       rproj =  output
    endif.
    *************end insert******************
    clear: disptext2_exp.
    select single post1
                into disptext2_exp
                            from prps
               where pspnr = catsd_imp-rproj.    <   COMMENT
                 where pspnr = rproj.              <   INSERT

  • How to add user to one to many groups in Active directory using powershell

    Hi  All
    I am working on a script to create a user and based on user type i would like to add that user into 2 to 3 groups . At the moment i have 3 groups e.g domain users, Developers, tester, 
    $NewUser = Read-Host "New Username"
    $firstname = Read-Host "First Name"
    $Lastname = Read-Host "Last Name"
    $NewName = "$firstname $lastname"
    $Group = "Dev"
    New-ADUser -SamAccountName $NewUser -Name $NewName -GivenName $firstname -Surname $lastname -displayname $Newname -UserPrincipalName $[email protected] -Path "CN=Users,DC=mydomain,DC=local" -AccountPassword (ConvertTo-SecureString -AsPlainText
    "Password" -Force)  -Enabled $true 
    Add-ADGroupMember -Identity $Group  -Members $NewUser
    I am not sure how to give user(sys admin) this option of choosing 1 or more groups while creating new user

    modified this line Add-ADGroupMember
    -Identity ([string]$h[$group])
    -Members
    $NewUser
    and
    now getting the error message Add-ADGroupMember : Cannot find
    an object with identity: '' under: 'DC=mydomain,DC=local

  • How can i keep a local backup copy of all our employees company email files in a single location. I believe this is called Journaling?

    We are legally required to store all communications between any employees' and their clients for a period of 7 years.   When we used Outlook 2010 this was not a problem with the PST file format.  However our recent change to Exchange
    server now leaves me with OST files which can only be opened by the original account.  Normally, this wold not present a problem but i can foresee possibilities where it might.
    Seven years is a long time and the original account in question could long since have been removed.  With PST files, it ewas a simple matter to open  them using the mail-admin account long enough to export any documents that were required
    but from what I have read this may not be possible with OST files.  
    Additionally, Exchange server OST files can reach sizes up to 50 GB and the conversion from OST to PST seems to add about 10% or more of size.  This could end up with a converted PST that would be over the size limit of any version of Outlook.
    What is the correct procedure to take in order to achieve this ability to keep backups in some format that they could be searched for specific criteria and exported for printing in order to meet these legal requirements.

    You are correct in that Journaling is probably the feature you want to use here.  Trying to PST and OST file gives you no guarantee that the messages are all there or have not been modified by the recipient.
    If you are using Exchange on-premises, you can configure journaling to a journal mailbox or a third-party appliance or cloud service.  If you are using Exchange Online, you cannot journal to a cloud mailbox and your options there are to configure journaling
    to an on-premises mailbox or third-party service.
    An alternative would be to keep all messages in the mailboxes themselves using something like Litigation Hold.  Even if a user deletes or modifies an item, it would be stored in the hidden "Recoverable Items" folder and would be accessible
    via the native eDiscovery tools.
    Joseph Palarchio http://www.itworkedinthelab.com

Maybe you are looking for

  • Changing master images in aperture and iphoto

    hi am i right in thinking that there is no way of altering my original (master) images (located in my 'pictures' folder) in both aperture ans iphoto? I want to be able to see the changes in the original images in this folder, and have these altered i

  • TS5347 Viewing backed up I phone on I cloud . com

    When iPhone is backed up into the cloud, can I access this back up a look for information?  (Eg. Pictures and other stuff in phone)

  • How to re-position scroll pane contents?

    I have a JSplitPane where the top half of the component contains a list of topics and the bottom half contains a scroll pane with a text area inside it. The user clicks a list item and the text for it is shown below it. The problems is when the text

  • Wrong Posting Opposite Posting

    Hi Gurus, I would appreciate, if anyone could explain the meaning of Wrong Posting Opposite Posting in "Define Reason for Reversal".  Also, why do we choose Alt. Post Date for the same. Please explain Thanks Mohit

  • JDBC: Connection is close problem

    Hi everyone, Can help me solve this problem, i insert two sql statement into the database using the within a method but i got a connection is close error. Why? can anyone help me to solve this problem. Thanks Here is my code: dbc.open(); String sql =