Trying to update hidden attibute in AD computer objects.

I am trying to update my AD computers using PowerShell to read the items from a CSV file. I have successfully updated the Description and other standard items, but I cannot get the non-common
hidden attributes to updated. I am very green on PowerShell. I'm not even sure I'm using the correct commands.
The contents of the CSV file looks like as below:
Name = preexisting Computer object name
Description = Information I want to place in the description field (Non-hidden \ standard)
comment = Information I want to place in the comments field (Hidden field)
name,description,comment
Computer1,Computer Model - 123456789 - Office 1111,Comment1
Computer2,Computer Model - 234567891 - Office 1112,Comment2
Computer2,Computer Model - 345678912 - Office 1113,Comment3
Below is the script:
# Update Computer Description and Comments
Import-module ActiveDirectory  
Import-CSV "C:\temp\Computers.csv" | % {
$Computer = $_.name 
$Description = $_.description 
$Comment = $_.comment
Set-ADComputer $Computer  -description $Description
Set-ADComputer $Computer  -comment $Comment

To set comments on non-standard items you need to do something like this:
Set-ADComputer Computername -replace @{Comment="Test1"}
[email protected]
Thank you Richard.  The information worked well.  I modified it slightly to retrieve the information from the CSV file as seen below:
Set-ADComputer $Computer -replace @{Comment=$Comment}

Similar Messages

  • HT4061 i tried to updated my iphone through my computer there was an error and then my phone became frozen on the conect to iphone screen and now itunes dose not recongize the phone

    I tried to update my iphone through my itunes and recieved an error message.  The phone then became frozen on the conect to itunes screen and I can not use the phone.  I tried to reconect to itunes but it does not recoginze my phone it just stays frozen.

    Try recovery mode as described here.  You may have to try to get into recovery mode more than once to succeed.
    http://support.apple.com/kb/HT1808

  • AD System Group Discovery not updating System OU Name on computer object when computer moves OU

    2 related questions.
    1. We have noticed that computer objects (active clients) in ConfigMgr are not getting their System OU Name discovery data updated when a computer account is moved from one OU to another, and AD System Group Discovery runs. Since we are basing some of our Software Updates collections on AD OU name, these systems are not falling into their required collections.
    2. On a few occasions we are also seeing duplicate computer objects being created. One new record from AD System Discovery, which contains the correct 'new' System OU Name, and one 'old' computer object from before the computer account was moved to a different OU in AD. The heartbeat discovery of this second object is still updating e.g. showing new heartbeats, but the computer object still shows the old System OU Name from before the computer account was moved in AD. If we delete both objects and run a Discovery Data Collection Cycle from the client, and AD System Group Discovery, then we get one new record with the correct 'new' set of System OU names.
    This duplicates issue is happening in both our Central Primary Site and our other child Primary site. Both sites are set to create new client records for duplicate hardware IDs, and there is a possibility we're seeing the duplicate records on machines that have been re-imaged and redeployed at some point.
    It's my understanding that it is AD System Group Discovery that updates the System OU Name property on client objects. We have this set to run every 4 hours. I'm not seeing any errors in the adsysgrp.log. Any idea why discovery is not updating the System OU Name information when a computer account moves OU? As far as I understand it, nothing additional is required to happen from the client end for this property to get updated.

    The only thing I can think of would be ad sys group discovery not running at the site where the client is assigned to?
    "Everyone is an expert at something" Kim Oppalfens Configmgr expert for lack of any other expertise. http://www.scug.be/blogs/sccm
    HI Everyone..
    ANy reply or correct answer to this question???
    Same problem even i have. Duplicate machine names created when machine moved to different sites.
    And also, AD sys group discovery running on all the sites (i have 4 sites).
    System Security analyst at CapG

  • Trying to update apps on phone via computer

    Keep getting this message:
    This computer is no longer authorized for apps that are installed on the iPhone “Andrea Campisi’s iPhone”. Would you like to authorize this computer for items purchased from the iTunes Store?
    When I say yes, and put in my password, it tells me...
    This computer is already authorized including this one, you have authorized one computer out of your available 5. I hit ok, and it brings me back to the first message...
    Can't seem to update my phone on the phone or computer...help

    your itunes on the computer and your iphone are logined with 2 different appleID change it so itunes on the computer is using the same one as the phone

  • Trying to update software & sync on new computer

    i have ipod touch which was originally synced on computer at home, which is now defunct. I wish to sync with work computer which already had music mp3s stored on it. i have downloaded itunes onto my work computer and connected ipod. i wish to update the software from 3.1.3 to 4.2 but get a message saying there are items that need adding to your library and i should transfere before updating, if i ask it to comtinue it says all media will be deleted from this ipod.
    if i try to sync my music it tells me that all existing tracks on my ipod will be replaced by music in my library.
    in short i cant update without a sync, and i cant sync without losing all my music on the ipod.
    any ideas, many thanks. PS im not a tekkie im a grandad so plain speak please.

    Hi,
    See these easy to follow Support Links for what you need to do:
    Syncing with iTunes
    How to transfer or sync content to your computer
    Transferring purchases from your iPhone, iPad, or iPod to a computer
    Backing up, updating, and restoring your iPhone, iPad, or iPod touch software
    From Here:
    http://www.apple.com/support/ipodtouch/syncing/
    Cheers,  

  • I recently tried to update IOS on a work computer not logged in as an administrator, this wiped my phone and put it in safe mode. I restored from a different computer but now need to back up from the work computer but dont want to"restore" to get contacts

    Itried to upgrade my software at work which failed and wiped my phone . It then wouldnt restore either and put the phone in recovery mode.
    I installed a new version of itunes on a home computer and restored my phone but it now has none of my contacts apps photos etc.
    How can I get this back from my work computer without restoring as this will fail again. Is there anyway of sending my backup from my work computer to icloud and backing up from there?
    I think the issue is that as I do not have administrator rights at work so  the restore/backup fails each time.

    Follow this very helpful user tip by wjosten:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • I tried to update to 4.0 and computer is extremely slow ever since. Also pop cap games will no longer load

    I followed upload instructions but was never prompted to drag the icon to my applications folder. So I don't believe the upload was complete.
    When I tried to play a game I received a message that I was trying to upgrade Flash in a system that could not support it.
    How do I cancel the flash upgrade?

    I went to the link you said to and then clicked on the "Firefox Free Download, 9.0.1 for Windows, English (US)" and that took me to ''http://www.mozilla.org/en-US/products/download.html?product=firefox-9.0.1&os=win&lang=en-US'' which had another limk to click on to start the download.
    The file downloaded but when I tried to run it my AntiVirus (ZoneAlarm) said that it was corrupt. So I removed that file and downloaded another from the same site and ZoneAlarm said that was infected and a contained possible malicious virus.
    So now I have no Mozilla Firefox and do not know how to get it back in a version that will run.
    Anyone, please help if you can.

  • HT201210 How do I turn iphone on after trying to update software through iTunes on a computer?

    How do I turn on iphone after trying to update software through itunes on computer?

    Normally when updating while connected to your computer running iTunes the iPhone will go through the complete update process and then restart. It will vibrate when it is finished restarting.

  • I am trying to update the apps in my MacBook Air but even though I am signed in with my apple ID an email of a person I don't know appears in the Apple ID tab and I can't change it

    I am trying to update the apps in my computer, but even though I am signed in with my Apple ID in the App Store, the tab where I am supposed to enter my Apple ID to to update it, someone else's email apprear. What do I do?

    You installed a hacked app, originally from the Mac App Store. It contains the receipt for a different app, downloaded using an account that you don't control. You need to identify and remove the hacked app.
    Important: The app you need to remove is not necessarily the one named in the App Store alert. For example, the App Store may prompt you to update "Angry Birds" or "Twitter," but the hacked app may be something else entirely. Don't make any assumptions about which app you're looking for. To find it, you must carry out a systematic search with Spotlight.
    1. Triple-click anywhere in the line of text below on this page to select it:
    kMDItemAppStoreHasReceipt=1
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    2. In the Finder, press command-F to open a search window, or select
    File ▹ Find
    from the menu bar. In the search window, select
    Search: This Mac
    from the row of tokens below the toolbar. Below that is a popup menu of search criteria, initially showing Kind. From that menu, select
    Other...
    A sheet will drop down. In that sheet, select
    Raw Query
    as the criterion, then click OK or press return.
    Now there will be a text box to the right of the menu of search criteria. That's where you enter the raw search query. Click in that box and paste the text you copied earlier by pressing command-V.
    4. The search window will now show all the App Store products that are installed. Compare those search results with the list of your purchases from the App Store. To see the complete list, you may need to unhide hidden purchases. If any apps were download from the App Store using other Apple ID accounts that you control, sign in to the store under each of those ID's and check the purchases.
    At least one of the apps in the Spotlight search results is not among your purchases in the App Store. Move each such item to the Trash, after quitting it if it's running. You may be prompted for your administrator password. Empty the Trash.
    Quit and relaunch the App Store. Test.
    If you find these instructions confusing, ask for an alternative method.

  • Getting error message when trying to update to 10.6.8

    I'm trying to update a 10.6.7 computer to 10.6.8 But I get an error message everytime.
    The error messages read:The installation failed! The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.

    Use a maintenance utility like Yasu or Cocktail to prepare existing Mac OSX. Or for more depth read this article.
    http://reviews.cnet.com/8301-13727_7-20073070-263/preparing-for-the-os-x-10.6.8- update/
    http://reviews.cnet.com/8301-13727_7-10469635-263.html

  • I have an old iPhone 4 that is not currently connected to a carrier. I'm trying to update the software so that I can download photos before I have it joked up to a carrier and give to my daughter. The phone is frozen. Help

    I have an iPhone 4 not currently hooked up to a carrier.  I am trying to update the software on my computer and it has frozen the phone. The screen has the apple logo and the progress bar three quarters full. How can I unfreeze the phone to continue?

    Leave the SIM in and do a restore as new.
    http://support.apple.com/kb/HT1414

  • Tried to update Itunes and got a runtime error.  now I cannot open Itunes

    trying to update itunes on windows 7 computer and it failed.  now I have a runtime errror R6034 and I cannot get into Itunes at all.  tried to reload Itunes from website and still will not work

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • TS3274 Error message 5000 received when trying to update ipad software

    How do I resolve this error message 5000 received when trying to update ipad software from my computer?

    iOS: Resolving update and restore alert messages
    http://support.apple.com/kb/TS1275
    iPad: Unable to update or restore
    http://support.apple.com/kb/ht4097
     Cheers, Tom

  • I'm trying to update my ipad mini to ios7

    Im trying to update to ios7 but the computer keeps telling me to update itunes first! Then i get a message saying i have the newest version of Itunes. What do I do?

    Apple's servers (download and activation) are swamped now with all the downloads and activations. They are releasing the updates in a staggered way. Just keep trying until your device is given the update.
    For example, my iPhone 5 is offered the iOS 7 update via over-the-air update directly on the phone. Plugging the same iPhone in my MacBook Pro and iTunes, I'm only offered 6.1.4 (I am currently running 6.1.0 on that device).
    Just wait it out...that's pretty much all you can do at this point.

  • HT1349 im trying to udate my itunes on the computer an im having problems doin could you assit me with it please as its asking for a serail number an i carnt put one in as i dont have one but i do have a i phone 4 do i use that number ?

    hi
    im trying to update my itunes on the computer as ive been told by t mobile that will help me sort my phone out which is a i phone 4..but im haveing problems doing it an i was wouldering if you could assit me with it please

    hi could you assit me please with updating my itunes account on thw computer as i have aproblem conecting my phone to the internet an t mobil have said i may need to update the itunes on the computer so please cou,d you assit me please thank you

Maybe you are looking for

  • Policy Based Routing and IP Helper

    Can anyone help with an issue i am having with PBR and an IP Helper.  I cannot get devices in the VLAN with the associated SVI to get DHCP addresses, there is no DHCP server in the VLAN so an IP Helper is used but whenever i enable PBR on the SVI, DH

  • Unable to export all columns from sharepoint 2010 survey

    Have a user that cannot export all columns from a sharepoint survey. When exported, he only gets 3 columns. We've tried a number of things, including exporting from the overview view. We've also made sure that readers had full edit rights, etc. Just

  • CD Drive On Resume From Sleep

    So i am new to macs as this is my first one. I am very pleased with my macbook, it runs at a normal temperature, and no discoloration so far. But i did notice that when I resume from sleep mode that my CD drive makes a weird sound. It kind of sounds

  • E63 Unable to open messages

    I have recently bought a E63 and can no longer open text or email messages, i have tried the factory reset, removing the battery for a long period and cleared out all the messages. I can receive new SMS messages and emails but still cannot open them.

  • Smtp relay on osx 10.9.5 and server 3.2.2

    What we have We have a mac mini setup using 10.9.5 and server 3.2.2.    The mail server is OFF but we have a Relay Outgoing Mail through ISP checked (and the proper credentials for the outgoing relay (FQDN) and the authorization credentials. What we