Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


  • Content Count

  • Donations

  • Joined

  • Last visited

Posts posted by zwirwel

  1. sounds like your almost there with this!

    Basically, a simple way to do this (but maybe not the neatest way) would be to put a shortcut in the admins startup folder to a script that is in your image. If this script did the rename of your pc, deleted the shortcut to itself and copied in a new shortcut to the admin startup for another ascript which did the next phase and so on untill you have reached the end result.

    To do this you would have to specify admin auto logon in the sysprep.inf

    I think thats about it.

    Good Luck

    That's what I ended up doing. Unfortunately that's behaving extremely quirky. I created a vbscript using wmi to query the asset tag of the BIOS and then I compare it to the hostname of the computer. If they don't match, I use a WMI script to rename and reboot the computer, then the script runs again on the next login.

    If they do match, the script deletes the shortcut from the startup folder and then fires off a script that uses netdom to join the domain as well as populating the registry with keys to make it autologon as the domain user (this is as I mentioned classroom computers).

    Unfortunately, the problem is that sometimes,oftentimes even, the file isn't deleted from startup...

    And even more frustratingly, since this is inside a WIM file, it actually deletes or doesn't delete it at different times when I deploy it. It's driving me crazy that its not consistant.

    I notice in the BDD that Microsoft does all kinds of black magic that works but unfortunately I haven't had time to study BDD or SMS that extensively and I'm not sure when I will have time to do so.

  2. Hi,

    I'm in a real fix here trying to set up a computer lab. :blink:


    I use Windows Server 2003 SP2 and Windows Deployment Services, but this issue would be similar with other imaging tools I imagine. Both capturing and deploying works fine, no problem there.

    5 classrooms, 40 computers, all Windows XP SP2 with Volume Licence.


    I need to be able to change the computers name to a value that is specified in the computers "assettag" in the BIOS.

    I can currently accomplish this using either a vbs script or wsname and both work (see attachment).

    I can also script a join to a domain using netdom join. Standalone, this works just fine :thumbup: when I run them individually outside of sysprep.

    I need this to be totally automated so that after WDS has deployed the image to the machine it will boot up and then automatically name itself and join the domain and automatically login (hopefully) and present the desktop. This is a closed off network so its not a problem that the computers automatically login and stand ready. The login name is the same as the computer name.

    The problem is:

    This is the procedure I have used so far:

    - I build a clean Windows XP install and configure it. Then I setup c:\sysprep and copy the necessary files to it.

    - I used the systemfile tool to build an unattend file sysprep.inf (see attachment) and put in the same folder.

    - I have a script "prep.cmd" that is supposed to run and do this: add runonce line to make computer run netdom after reboot then run asset2pc.vbs and get computer name from assettag and then reboot the computer to set it and reboot

    - after reboot, the computer goes to windows welcome screen and stops. I have to click to make it login, when it runs the netdom script and joins the computer to the domain using %computername% as variable for computer name and reboot

    But the problem is I cannot figure out how to make the computer automatically login and run synchronously first the asset2pc script+reboot - autologin - netdom join+reboot - autologin as correct user

    Where do I need to put what? Any ideas? Really desperate now...



  3. are you sure that a vhd file can be mounted with daemon tools? i am not talking about an image from a DVD. im talking about the backup that is created by windows vista when you use the complete pc backup option.

    Programs that can read Virtual PC disks can access it.

    Search for programs that can access content of VHD files (Virtual PC Hard drive files).

    or in worst case scenario:

    1. Download Virtual PC (VPC 20007 is released now and runs in XP/Vista) for free and make a new virtual PC. Install an OS on it (at worst just use the XP CD and delay activation or the Vista DVD without entering a product key to get the 30 day trial).
    2. Then mount the VHD from the backup as an additional disk to the image. I suggest mounting a copy of the VHD or making the VHD readonly.

  • Create New...