February 9, 201016 yr Can't find any info about that.Do I have to mount my install.wim and include the script somwhere to make it run on the first autologon after the wds installation is finished?
February 9, 201016 yr Do you want the folder that runs the same script for every single start-up. C:\Windows\System32\GroupPolicy\Machine\Scripts\StartupOr are you talking about a one-time use script running during installation. I usually run these scripts from SetupComplete.cmd, but you may want to use a first login script, depending on your needs.$OEM$\$$\Setup\ScriptsWhich is the same as mounting the WIM and editing the files here.Mount\Windows\Setup\Scripts Edited February 9, 201016 yr by MrJinje
February 9, 201016 yr Author I mounted my install.wim but I don't have an Scripts folder in "mount\windows\setup". Should I just create a folder and a .cmd in the Scripts folder? Edited February 9, 201016 yr by cluberti Removed quote - only quote a large block of text (or images, etc) if it actually will mean something in the reply. It did not in this case, so quote removed - be consideriate of our members who have slow 'net connections please.
February 9, 201016 yr Please do not quote the entire post, it makes the thread look next time use the Add Reply or Fast Reply buttons.The SetupComplete.cmd runs in an administrative capacity before the first user account is created. It runs with full permissions by design so you should have no problems (except with editing HKCU settings, ask if you need the method).
February 10, 201016 yr Author I added the program files to the root of install.wim and putted SetupComplete.cmd in Mount\Windows\Setup\Scripts. unmounted the install.wim and mounted again to see if the files were there.Pointed in the script to C:\filetoinstall but nothing is installed when setup is complete and I can't see the files in the system root folder.I use pxe to my wds server to install.Can't find anything about SetupComplete.cmd in my Setupact.log file.Isn't it easier to put all files in RemoteInstall\Images\win7\install\$OEM$ on the server, then I don't have to modify the wim file? Edited February 10, 201016 yr by zeezam
February 10, 201016 yr Isn't it easier to put all files in RemoteInstall\Images\win7\install\$OEM$ on the server, then I don't have to modify the wim file?I can't get $OEM$ to work from PXE boot either. Maybe PXE/WDS/$OEM$ does not play nicely. Instead of OEM method, you should just install your software normally and capture a configured/sysprep machine. PXE can handle pushing customized wim images that way.Or you will need to do some trial and error and report back the correct way to $OEM$ a PXE install (didn't mention PXE in first post, so you got some misguided advice). But I think capturing an image will be the easier method.
February 10, 201016 yr Author Instead of OEM method, you should just install your software normally and capture a configured/sysprep machine. PXE can handle pushing customized wim images that way.Thanks for the info!Is the best way to make a capture boot image?Edit;Found a good demo -> http://technet.microsoft.com/en-us/windows/ee530017.aspxI'll try this out tomorrow. Edited February 10, 201016 yr by zeezam
February 10, 201016 yr Is the best way to make a capture boot image?Try the internal method. Open WDS drill down to "Boot Images" right click, select "Create Capture Image" and follow the prompts. When I PXE booted, I picked my new Capture image and here is the screen I get. It was 100% wizard driven, so maybe not the "best" method, but certainly the easiest/quickest as opposed to manually creating your own PE image and fully scripting IMAGEX by hand. It can only capture "sysprep" machines, so if you are not sysprepping, an alternative would be needed.
February 11, 201016 yr Author Try the internal method. Open WDS drill down to "Boot Images" right click, select "Create Capture Image" and follow the prompts. When I PXE booted, I picked my new Capture image and here is the screen I get.I have created an Capture Image but when I choose to boot from it with PXE I come to the installation process.If I choose to sysprep, what can I boot with to use ImageX?EditWorked great when I created a new boot image with the boot.wim I got when I created a capture image. Syspreped the machine, PXE booted and came to the wizard.Now I have two *.wim files added under Install Images in WDS but I can't choose image now when I boot, it takes the install.wim I have specified in unattended.xml.Is it possible to choose which wim to install via the boot image, so I can use which image I want to install from the boot menu? Edited February 12, 201016 yr by zeezam
Create an account or sign in to comment