+ Post New Thread
Results 1 to 4 of 4
O/S Deployment Thread, Bulk import of computers in MDT 2012 in Technical; Hi Everyone, I am hoping someone can help out here, I am trying to populate several values when importing computers ...
  1. #1

    Join Date
    Jan 2008
    Posts
    37
    Thank Post
    2
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Bulk import of computers in MDT 2012

    Hi Everyone,
    I am hoping someone can help out here, I am trying to populate several values when importing computers into MDT 2012 I can import the computers ok but not all values are importing.
    This is the script i am using to do the bulk import:

    import-Module –name D:\MDTDB.psm1
    Connect-MDTDatabase –sqlServer WSH-LABDC-01 –instance SQLEXPRESS –database MDT
    $machines = Import-Csv D:\Import.txt
    For ($i=1; $i -le $machines.count; $i++)
    {
    New-MDTComputer -macAddress $machines[$i-1].mac -settings @{
    OSInstall='YES';
    OSDComputerName=$machines[$i-1].name;
    OrgName='RM PLC.'
    }
    }

    And this is the text file with the computers to import, I would like to populate the other fields like UUID, serial number, asset tag and description, but only the MAC and ID are shown in the console:

    Name,UUID,MAC
    ADMINLAP,000EF65E-5740-8014-BF5A-020090D138EA,00:24:8C:9E:FC:0E

    Any help with this would be appreciated greatly.

  2. #2
    morganw's Avatar
    Join Date
    Apr 2009
    Location
    Cambridge
    Posts
    816
    Thank Post
    46
    Thanked 132 Times in 126 Posts
    Rep Power
    39
    Quote Originally Posted by speckled View Post
    OrgName='RM PLC.'
    Try it with an extra semi-colon
    Code:
    OrgName='RM PLC.';

  3. #3
    Boredguy's Avatar
    Join Date
    Jun 2011
    Location
    Swindon
    Posts
    568
    Thank Post
    3
    Thanked 128 Times in 119 Posts
    Rep Power
    50
    If you want to add into the UUID field, you might want to try adjusting your NEW-MDTComputer line.
    The following adds in the mac address and the description field when we run our script.
    Code:
    New-MDTComputer -macAddress $machines[$i].mac -description $machines[$i].name -settings @{

  4. Thanks to Boredguy from:

    speckled (6th December 2012)

  5. #4

    Join Date
    Jan 2008
    Posts
    37
    Thank Post
    2
    Thanked 1 Time in 1 Post
    Rep Power
    0
    Thanks Boredguy, that did the trick, I can now populate all the computer properties displayed for computers within the console! you my man are a star!

SHARE:
+ Post New Thread

Similar Threads

  1. Display count of computers in an AD group?
    By FN-GM in forum How do you do....it?
    Replies: 18
    Last Post: 31st January 2012, 08:59 AM
  2. Bulk creation of users in 2008...
    By Little-Miss in forum Windows Server 2008 R2
    Replies: 9
    Last Post: 10th October 2011, 09:32 PM
  3. [Video] The National Museum of Computing in ten minutes
    By mattx in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 23rd February 2011, 12:38 PM
  4. [Fog] Fog Documentation: How to delete a group of computers in FOG
    By ssx4life in forum O/S Deployment
    Replies: 1
    Last Post: 9th November 2009, 01:59 PM
  5. Bulk import of 'sites' in Sharepoint 2007
    By bandgeekmafia78 in forum Windows Server 2000/2003
    Replies: 0
    Last Post: 4th September 2009, 11:09 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •