WDS keep existing computer name

Hello,
We have WDS up and running on a recently setup server.  Most of it is all defaults apart from the fact that we have added boot images and system images.  We have an unattend file with the %MACHINENAME% in it, but for some reason it always generates
a random name based on the info in the AD DS tab in the WDS server properties:
%61Username%#
Why would a reimaged computer not take the existing name if the unattend file says to do so?
Unattend file is called OOBEunattend.xml located in E:\Answer Files\WdsClientUnattend\
This is the first part that includes the %MACHINENAME% variable.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="specialize">
        <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <RegisteredOrganization>ORG</RegisteredOrganization>
            <ComputerName>%MACHINENAME%</ComputerName>
            <RegisteredOwner>User</RegisteredOwner>
            <TimeZone>Central Standard Time</TimeZone>
        </component>
        <component name="Microsoft-Windows-UnattendedJoin" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <Identification>
                <Credentials>
                    <Domain>domain.ca</Domain>
                    <Password>password</Password>
                    <Username>administrator</Username>
                </Credentials>
                <JoinDomain>domain.ca</JoinDomain>
            </Identification>
        </component>
    </settings>
Must be missing something...
Any help would be great.
Thanks,
Dan.

Hi,
When
ComputerName is set to an asterisk (*) or is an empty string, a
random computer name will be generated.
<ComputerName>%MACHINENAME%</ComputerName>
Here change the string “%MACHINENAME%” the name you want to assign without “%”.
Example:
<ComputerName>MyComputer</ComputerName>
If the answer file is indeed written like this, please check setupact.log under directory:
C:\Windows\Panther
Hope this helps.

Similar Messages

  • Automatically name computers using existing computer name

    In my environment, I have brand new computers to be imaged.  The computer name needs to consist of the room number and the serial number.
    I am utilizing the Collection Variables within All Unknown Computers collection to define the room number.  And I am using CustomSettings.ini to automatically grab the serial number and combining that to the room number to OSDComputerName.
    That is working perfectly fine.
    My question is how to automatically use existing computer name as the name of the re-imaged computer?
    If I use the same task sequence, because the computer is no longer an unknown computer, it doesn't prompt me for the room number.  The computer name ended up containing the variable %roomnum% plus the serial number.  I do not want SCCM to prompt
    me for anything but automatically use the existing computer name.
    Please advise.

    Maybe I am missing a step.
    This is my current CustomSettings.ini file
    [Settings]
    Priority=Init, Default
    Properties=ComputerSerialNumber
    [Init]
    ComputerSerialNumber=#Left("%SerialNumber%",7)#
    [Default]
    OSDComputerName=%RoomNumber%%ComputerSerialNumber%
    OSInstall=Y
    SkipCapture=YES
    SkipAdminPassword=NO
    The variable %RoomNum% is defined in the All Unknown Computer collection and a prompt appears for me to manually enter that information before imaging the computer the first time.
    But when I reimage an existing computer, I get no prompt and because the variable is not defined, the final computer name because %RoomNumber%9999999, which is longer than 15 characters and so the task sequence fails.
    How and where in the task sequence do I define: if this is not an unknown computer, then use existing computername?
    I also notice that I can add a step called "Capture Windows Settings-Migrate Computer Name".  Is this the step that I need?  Where in the task sequence should it be added to?
    Here is a section of my task sequence. I didn't change much from the default created MDT Task Sequence.

  • MDT and Computer Name

    I'm looking at trying to keep the computer name when I reimage using WDS 2012.  We name our computers a certain way and would like to keep from having to retype the name over and over when we reimage.  Hopefully someone can help me.  I need
    this to work on existing computers that are being reimaged.  Our naming schema goes XXX-0YYYYY-ARRR.  XXX represents the second quadrant of the ip address it is given by DHCP, 0YYYYY represents and interna fix asset numbering system, and ARRR refers
    to the room location of the computer.
    I know with new computer, I will have to give them a name so I would like to have the field editable when PXE booted into WinPE but just populated on the existing machine name if it had one.

    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    DeployRoot=\\WDS\XP-DS
    OSInstall=YES
    SkipAppsOnUpgrade=YES
    SkipCapture=YES
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipFinalSummary=YES
    SkipLocaleSelection=YES
    KeyboardLocale=en-US
    UserLocale=en-US
    UILanguage=en-US
    SkipTimeZone=YES
    TimeZone=020
    TimeZoneName=Central Standard Time
    SkipUserData=YES
    SkipDomainMembership=YES
    JoinDomain=domain.contoso.net
    EventService=http://WDS:9800
    @ Michael - Thank you so much for the script.  I created the script and put it in the folder that you said to put it in.  When I go to the Rules tab of my deoployment share, I wasn't 100% sure where to add the two lines.  I have attached below
    what my current CustomSettings.ini looks like.
    Hi
    I'm sorry I confused you. It is not under the General section as a wrote, it is the default section. Like this
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    UserExit=UserExit.vbs
    OSDComputername=#GetOfflineComputername()#
    DeployRoot=\\WDS\XP-DS
    OSInstall=YES
    SkipAppsOnUpgrade=YES
    SkipCapture=YES
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipFinalSummary=YES
    SkipLocaleSelection=YES
    KeyboardLocale=en-US
    UserLocale=en-US
    UILanguage=en-US
    SkipTimeZone=YES
    TimeZone=020
    TimeZoneName=Central
    Standard Time
    SkipUserData=YES
    SkipDomainMembership=YES
    JoinDomain=domain.contoso.net
    EventService=http://WDS:9800

  • How do I checkin/unlock files that I checked out under a different computer name?

    My hard drive went bad. My IT department migrated me from windows 7 to windows 8 and also to a different user and computer name in a new domain. Now I cannot unlock files that were checked out on the old drive under the old domain user & computer.
    I tried running Visual Studio 2013 under the old user name (using Run as other user), but appears that the files are inaccessibly locked on the old and no longer existing computer name.
    John Mikesell

    Hi John,
    Based on your description, your TFS and current client machine in different domains.
    In this situation, you can contact your TFS administrator to make two-way trust between the two domains,  then add the current user account as a team member of your team project. After that, you can ask team project collection Administrators to
    unlock the file that your locked. Or ask the administrators to add your account to the group of "Project Collection Administrators". Then you can unlock the source files by yourseft after a workspace mapping on client machine. Check this
    page for more information about lock and unlock files or folders.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • My Computer Name Keeps Changing

    I system preferences sharing where you go to set your computer name I am noticing that mine says "Rob's iMac (3)" instead of "Rob's iMac".   My network hasn't changed, haven't added or removed anything.   I am using an airport extreme.    One thing I remember is that every once in awhile I will get an odd prompt trying to connect to the wi fi related to this but I can't remember.    But the annoying thing right now is that the OS will not allow me to go back and take that "(3)" off.     Does it have anything to do with VMware and Windows 7 running on my system?     It almost seems like the airport extreme thinks there are now three iMacs on the network......... thx in advance....

    I have exactly the same problem. There is one Mac on my network, WiFi is off on the Mac, the other machines are Windows 7 computers. The renames are completely random, sometimes even after waking from sleep. It's Lion that doesn't keep track and it's annoying the **** out of me.
    My trusty Snow Leopard white iMac blew itself up (literally) two weeks ago so I was forced onto Lion. It's the worst OS X I've ever used - never had to google so often for workarounds and fixes (scrolling direction, hidden user Library, problems with Mail, keyboard mapping, the list goes on and on...)
    If Mountain Lion fixes the renaming issue it might be worth the upgrade.

  • MacBook Computer Name Keeps Changing

    Recently my Mac computer name keeps changing. It's the normal name, but with a number at the end that keeps incrementing. How can I stop this?
    I'm not sure if it's something to do with the fact I had a partition for the public OS X Yosemite, which I have now deleted.
    Any ideas? Thanks.

    I was having the same problem for awhile, even contacted support so they could screen share and see what I meant. 
    What I ended up doing was correcting the name and then unchecking all the boxes in Sharing.  Open up Airport Utility and reset the router (basically I changed my password only because that's the easiest way to make it update).  Go back into Sharing and recheck the sharing options that you had previously.  Viola!
    So far it's been a week now and my computer name has not changed.  Hope this helps

  • Computer name keeps changing by integer Name (2)

    My 2011 i7 iMac running 10.7.4, regularly changes the computer name. Always when rewaking it from sleep, the "Name" becomes "Name (2)". It claims "the name is already in use on this network". And this assertion is most certainly false. A quick search informs me this issue has existed since 10.5.8; I am experiencing it on 10.7.4 so I have to assume the cause has not been investigated or not found (or both).
    Since the issue seems linked to Shared Resources I am going to try not sharing anything from this iMac from now going forward to see if this ends the behavior.
    Whats really iritating about this is that the System Preferences > Sharing panel has a Lock on it that is *supposed* lockout changes to the settings under it. But the system is bybassing that lock mark and changing something without asking. Not okay.

    I have been having the same problem ever since updating to 10.7.4.  I have read of other people having this problem too, without resolution, so I presume it to be an Apple bug that will get ironed out in the next update.
    Hope this helps

  • Computer Name Keeps Changing

    In the system preferences sharing where you go to set  "Computer name" I am noticing that mine says "iMac (3)" I have changed it back but keeps renaming the name "iMac (1),iMac (2), iMac (3) and so on,,, ".   My network hasn't changed, haven't added or removed anything. This Only happens when System goes to sleep. Any Help on this???

    I had the same problem. I solved it. I use an Apple Airport Extreme. I had connected my computer to the Airport Extreme using an ethernet cable and I also activated WiFi on my computer.  My computer kept changing names. To correct this i deactivated WiFi on my computer, connecting to the internet only through the ethernet cable attached to the Airport Extreme. No more name changing. 

  • MDT / WDS Computers joining the network with correct computer name, but no drivers (including NIC) installed

    I'm using WDS and MDT to install the computers in my network.
    I recently reinstalled a server 2012R2 with the last available versions of WDS and MDT. Everything works fine except for the fact that none of my computers (different series) is installing the out of the box drivers in windows.
    The network connection although is ok during setup because the computers add to the domain with the given computer name.
    I'm sure I'm using the correct drivers and in my task sequence I enabled to inject all drivers.
    Ideas?

    Hi admin0485,
    I am not very familiar with MDT, if you used the MDT to install the drivers we can ask in the specific MDT support forum, if you are using WDS to install drivers please recheck
    your drivers architecture compatible with your system, we can not use the x64 driver on x86 image.
    More information:
    Managing and Deploying Driver Packages
    http://technet.microsoft.com/en-us/library/dd348456(v=ws.10).aspx
    MDT support 
    forum:
    https://social.technet.microsoft.com/Forums/en-US/home?forum=mdt
    Thanks for your understanding and support.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Why does the local network and computer name keep changing?

    After upgrading to Yosemit the local network name and computername on my iMAC keep changes link:
    Mycomputer-1
    Mycomputer-2
    Mycomputer-3
    Why?
    I have tried to change it back in sharing and network locations.
    Is this also the reason the my iPhone cannot find my iPhone often cannot find my iMac when I will sync it? Then I have to restart the iPhone and iTunes on the computer. This happens very very often.
    Maybe it also linked to these errors which the log is full of - many every minute:
    19/10/14 12.11.09,522 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:256
    19/10/14 12.11.09,543 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:12856
    19/10/14 12.11.09,561 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:0
    19/10/14 12.11.09,565 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:44032
    I think the is some bug/clash between bonjour and other network protocols. That is only a guess.

    After resetting the computer name and local host name to the correct name without the number I also shotdown my iMac, my AppleTV, my iPhone, my iPad and then rebooted my Airport/Time capsule it seemed to work at least for several days. But yesterday I discovered that my Apple TV now also has changed name to Apple TV (2).
    I logged into iCloud.com to see my devices and here it was really wired. My Apple TV was called Apple TV (2) and my iMac also had (2) after the name. Then I checked it on the iMac but here it was correct! Why can it have one name on the iCloud and another on the computer.
    I restarted both the iMac, Apple TV and Airport Time capsule then everything was correct also on iCloud.com.
    But today the iMac was called the name (2) again on the iMac. And now the local host name also had -2 after the name. It has not always been both names that has changed. That is really wired. And today Wifi was not working on the iMac after wake from sleep. I changed the name back and rebooted again also the Airport Time capsule. Now it is working again.
    The log is still full of this messages:
    02/11/14 19.22.13,186 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:1901
    02/11/14 19.22.25,738 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:34051
    02/11/14 19.22.25,758 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:12342
    02/11/14 19.22.25,900 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:34051
    02/11/14 19.22.25,919 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:1901
    02/11/14 19.22.27,636 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:28772
    02/11/14 19.22.27,683 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:27693
    02/11/14 19.22.27,714 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:28533
    02/11/14 19.22.49,833 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:29281
    02/11/14 19.22.49,866 discoveryd[53]: Basic DNSResolver  dropping message because it doesn't match the one sent Port:0 MsgID:28528
    The name is not the only problem. Often itunes will not find my iPhone and iPad. Then i need to close iTunes and restart the iPhone and iPad then it works for some time.
    And the iPhone and AppleTV will not always wake the iMac from sleep. I am wondering if the is linked to the changing of name.
    I have seen by googling that it can be related to a sleep proxy problem so it seems like that here is two devices on the net with the same name that is why name is changing, but to know this do not help me to solve the problem. I have also seen all the suggestion to turn almost every services off on the computer, but again I it is not a solution and I have the iMac and devises to use the functionality not to shot everything down. So I do not really understand people saying turn off itunes, turn off blueboth, and turn off this and that.
    Apple must soon come with a real solution. We are really many people have these problem since we upgraded to Yosemite and iOS 8.
    I have also listed some of the iTunes errors from the log below:
    02/11/14 19.24.48,160 com.apple.xpc.launchd[1]: (com.apple.quicklook[1364]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.quicklook
    02/11/14 19.24.52,279 Console[1368]: Failed to connect (_consoleX) outlet from (NSApplication) to (ConsoleX): missing setter or instance variable
    02/11/14 19.25.06,907 iTunes[480]: Entered:_AMMuxedDeviceDisconnected, mux-device:5
    02/11/14 19.25.06,908 iTunes[480]: Entered:__thr_AMMuxedDeviceDisconnected, mux-device:5
    02/11/14 19.25.06,908 iTunes[480]: tid:17d8b - Mux ID not found in mapping dictionary
    02/11/14 19.25.06,908 iTunes[480]: tid:17d8b - Can't handle disconnect with invalid ecid
    02/11/14 19.30.19,234 com.apple.usbmuxd[56]: _SendAttachNotification Device 30:f7:c5:30:b8:2b@fe80::32f7:c5ff:fe30:b82b._apple-mobdev2._tcp.local. has already appeared on interface 5. Suppressing duplicate attach notification.
    02/11/14 19.30.22,192 soagent[429]: Can't allocate SOHelper <SOMessageHelper: 0x7f9053a102c0> inside com.apple.soagent
    02/11/14 19.30.54,871 iTunes[480]: Entered:_AMMuxedDeviceDisconnected, mux-device:6
    02/11/14 19.30.54,871 iTunes[480]: Entered:__thr_AMMuxedDeviceDisconnected, mux-device:6
    02/11/14 19.30.54,871 iTunes[480]: tid:1a23b - Mux ID not found in mapping dictionary
    02/11/14 19.30.54,871 iTunes[480]: tid:1a23b - Can't handle disconnect with invalid ecid
    02/11/14 19.32.06,137 com.apple.usbmuxd[56]: _SendAttachNotification Device 30:f7:c5:30:b8:2b@fe80::32f7:c5ff:fe30:b82b._apple-mobdev2._tcp.local. has already appeared on interface 5. Suppressing duplicate attach notification.

  • My iMac's computer name keeps changing automatically after Yosemite upgrade

    This started happening once I upgraded my iMac to Yosemite. It will add numbers to the name of my iMac.
    Example: It starts off as say "My iMac"
    Then a half day later, it changes to "My iMac (2)"
    Then the next day it will be "My iMac (3)"
    And if I open the Finder window, it will show "My iMac" and "My iMac (2)" under "Shared" but if you click on them, nothing happens.
    When I go to System Preferences > Sharing the computer name will have the number there "My iMac (3)" and say it can be found as MyiMac-3.local
    If I change it back to just "My iMac", the number process starts all over again. I even tried naming the iMac something it was never named before and the same process occurs with the adding of the numbers.
    Anyone know how I can fix this?

    Have had the same issue with an iMac and MacBook Pro, both with Yosemite (MacBook upgraded from the Yosemite public beta). Both previously had Mavericks, and at one time or another would have had both Ethernet cable and Wifi on. This issue has only occurred since the upgrade to Yosemite. I do not use iCloud, so I believe that may be irrelevant and merely coincidental.
    The solution provided by an Apple Care rep seems to have resolved the issue. Has stuck now on both machines for the last few hours. Time will tell for certain, but here's what we did:
    - in System Preferences > Sharing, remove the (2) [or whatever is extra; mine was iMac (2), so I removed the (2)
    - exit Preferences
    - shutdown
    - restart machine in Recovery mode (machine off, press and hold Command + R, power on, when Apple logo appears release keys)
    - may take a few minutes to boot (depends on machine generation/speed, RAM and such)
    - open Disk Utility
    - select the OS disk (mine was Macintosh HD; selected the 'indented' item)
    - run Verify Disk Permissions
    - when finished run Repair Disk Permissions
    - restart
    On the MacBook I tried turning on Wifi and so far so good.
    Banish the deux!

  • Mac Computer Name Keeps Incrementing

    Hi, I have a MacBook Pro and a Mac Mini, both on WiFi connected to an Airport Extreme. Since upgrading to Yosemite, both computers keep changing their name (as seen in Sharing under Preferences) every few hours.
    For example, the name changes from "MacBook Pro" to "MacBook Pro (2)", then "MacBook Pro (3)" and so on. This is occurring for both Macs. They each have unique names and there are no other devices on the network, so I don't understand why the name keeps changing as if there is a conflict. I don't see any other error messages. I can change the name back in Settings, but it immediately increments again. Rebooting all devices does not change the behaviour. Neither Mac is connected via Ethernet, only WiFi.
    Anyone else see this kind of behaviour? Any ideas how to correct?

    Apple doesn’t routinely monitor the discussions. These are mostly user to user discussions.
    Send Apple feedback. They won't answer, but at least will know there is a problem. If enough people send feedback, it may get the problem solved sooner.
    Feedback
    Or you can use your Apple ID to register with this site and go the Apple BugReporter. Supposedly you will get an answer if you submit feedback.
    Feedback via Apple Developer

  • Computer name keeps getting (2) appended to it.

    I've searched high and low and can't seem to figure out why my iMac thinks the computer name is already being used on the network.
    I can see in the sharing preference pane that the original name is what is indicated with this copy:
    Computers on your local network can access your computer at: XXXXX.local
    However, the name in the field above it has XXXXX (2) and each time I try to get rid of the (2) I get the message:
    The name of your computer “XXXXX” is already in use on this network. The name has been changed to “XXXXX (2)”
    I can change the name using the EDIT button to anything else I want, and it doesn't add the (2). But once I change it back to my desired computer name, I get the same message that it's already being used.
    I've tried turning off all of my sharing services but that still doesn't seem to allow the name to be used.
    Any idea what other process is running that can be using the name? How do I figure out where the conflict is occurring?

    Thanks for the suggestion, Alberto. I turned all networking off and was able to make the change successfully. However, once I turned networking back on again, the same message popped up:
    The name of your computer “XXXXX” is already in use on this network. The name has been changed to “XXXXX (2)”
    In the Sharing Preference Pane, I verified that it appears to still be using the correct .local name:
    Computers on your local network can access your computer at: XXXXX.local
    But the Computer Name in the field above the message switched to XXXXX (2) again.

  • Will Setup Assistant allow me to choose a new user name or must I keep the user name on the source computer?

    The source computer is an early 2008 Macbook Pro running Mavericks. The new computer (it's in transit) is a 15" Macbook Pro w/ Retina Display, also running Mavericks. I want to copy all files, settings, apps etc from the old computer but I do not want the same computer name or the same user account name (short name) on the new computer. Can Setup assistant do this?

  • "Computer name" screensaver keeps coming back!

    Hi! I use a third party called electricsheep as my screensaver, and after a few hours, my screensaver automatically switches to the computer name screensaver with the apple logo. I tried many ways to avoid this, but couldn't. Anyone has ideas? Thanks!

    You'd need to download it from Apple:
    http://www.apple.com/support/downloads/macosx1054comboupdate.html
    Will take a bit, but not really all that long if you have good bandwidth. Get some coffee.
    Occasionally, doing this can straighten ones systems out, it did for me. More than a few people had problems by using Software Update to update to 10.5.4. This is usually considered the better way to go. Good luck, hope it works.

Maybe you are looking for

  • Training and event management questions

    Hi all, as I am new to this topic I am facing some problems and did not found a solution yet. I hope that someone here can help me. Below the issues. 1. How can I change the Info message which notifies you that the maximum capacity of the attendees h

  • Background job Delay In ( sec)

    Hi Experts , I submitted one job in background Via SM37 here i have one question. Job is still in Active but it shows  Delay ( sec ) 2,181.                                                 Duration ( Sec) 1,999 what it means ? Thnx .

  • Display invalid pattern name while calling the procedure inside the package

    Hi , I'am trying to call a package which is having procedure ,from JDBC in which one of the return type is Varray from the procedure.When i'am calling the procedure inside the package from java showing invalid name pattern name.Just i'am placing the

  • How can i stop reinstalling adobe flash player everytime i boot up?

    I always have to do a fresh reinstallation of adobe flash player if i want to watch a video online,everytime i boot up..iam running windows 7 64 bit, and have the latest version of firefox running on my laptop!

  • Listening to 1 song in itunes

    hi everybody sometimes i need to listen to a sample of 5 seconds. if i open itunes to do that, he plays that sample, followed by the next marked song (can be another sample of 5 seconds - and another... one after the other). it's no big deal, but it