Задачи перед захватом вашей ОС

779
Bas

В дополнение к одному из моих предыдущих вопросов о том, как сделать ISO для автоматической установки Windows 8.1, у меня возникла следующая мысль: Допустим, вы хотите сделать пользовательскую установку Windows для компании.

Проблема в том, что в этой компании у них 5 разных моделей компьютеров, которые требуют разных драйверов. Можете ли вы сделать какое-то условие, чтобы проверить модель ПК, а затем установить этот драйвер для этого конкретного ПК? Или мне тогда нужно 5 разных изображений?

Вы также не хотите иметь какую-либо учетную запись пользователя на этом компьютере, это должна сделать пользователь. Можно ли удалить всех пользователей, прежде чем вы sysprep вашего компьютера и запустить WinPE на нем?

2
What you SHOULD do is have a location on your image (or on a network storage, for example, to save space) with the drivers for all machines (extracted so you have the .inf and supporting files) and you write your unattend.xml file to give the location of the drivers so Windows knows where to look during the setup phases. Kinnectus 8 лет назад 0
@BigChris And Windows then automaticly knows which drivers to install? Bas 8 лет назад 0
It should do, yes. When installing devices Windows looks at the driver files and tries to find the hardware ID of the device in the driver file. If the ID is found then that driver can be used for that device. It's not as simple as that, but it's one way that a manufacturer can write one driver for many devices that have (roughly) the same functionality. Imaging and drivers is not an easy task and it involves a lot of learning...! Kinnectus 8 лет назад 0
@BigChris Alright, and what do you mean by extracting the installation? Bas 8 лет назад 0
Many drivers are obtained in `.zip` or `.cab` or `.exe` format. Sysprep and unattended installations do not know how to extract these, hence you need to extract the files into a folder. Some driver manufacturers package the drivers inside an exe and they can be almost impossible to extract - in these cases you may not get a particular device to work without running the exe to install the drivers on each machine separately... Kinnectus 8 лет назад 2

2 ответа на вопрос

1
BiTinerary

I used to do this all the time. You don't need 5 different images although if you have the storage space, it would be simpler and time effective to just make the image and have that be that.

Assuming that you go with the former option I recommend a variation of what was mentioned before. Setup a local server/storage medium that your WinPE can access. This way each computer (WinPE) can have it's own folder for it's specific drivers.

From here it's quite simple if you are familiar with various parts of WinPE and it sounds like you are. Add drivers to an image using the following commands.

Use DoubleDriver to backup any Microsoft or Non-Microsoft drivers. This is super simple and allows you to extract all drivers in the required .inf format.

Mount the install.wim you want to alter:
Dism /Mount-Image /ImageFile:"C:\path\to\install.wim" /index:1 /MountDir:"C:\path\to\MountFolder"

Inject the specific drivers folder:
Dism /Add-Driver /Image:"C:\path\to\MountFolder" /Driver:"C:\path\to\DriverFolder /Recurse"

(If you want to add just one, then point directly to the .inf file and remove /Recurse flag)

Unmount and save your work:
Dism /Unmount-Image /MountDir:"C:\path\to\MountFolder" /commit

This can easily be added to the unattended.xml process, via bootable command line or the startnet.cmd which is one of the first scripts to be executed during the installation.

Alternatively, you can install a new image to a computer. Press CTRLSHIFTF3 when you're brought to the Windows Setup prompts (Computer name, user name, etc...) and you will be booted into sysprep. From here you can just Restore the drivers file using the first initial DoubleDriver prog. This method may be easier but is has significantly less potential to be automated.

Full documentation on the above suggestion, adding custom commands to startnet.cmd and other WAIK goodies.

https://technet.microsoft.com/en-us/library/hh824972.aspx

-1
Geruta

The idea with imaging multiple pcs with different model numbers and hardware is to using imaging software like SCCM. With that, you can create a single image that then, through task sequences, grabs additional drivers as it detects what's needed during install. It also installs applications, updates, and a bunch of other stuff like joining to a domain during install. It's a fantastic tool.

Does your company have access to SCCM? If not, you can use WDS (Windows Deployment Services and MDT (Microsoft Deployment Toolkit) to create a similar setup. For free (assuming you already have a Windows 2008 server or higher)

** EDIT **

I don't understand all the down voting. SCCM and WDS/MDT are both legimate and arguably the most Microsoft approved methods for achieving this.

Alright, but can I do this manually aswell? If so, what's the process? Bas 8 лет назад 0
As others have suggested, this method would suffice. https://technet.microsoft.com/en-us/library/cc766485(v=ws.10).aspx Geruta 8 лет назад 0
As, don't forget to create the network share, assign it read access by everyone, and place the raw .ini and .sys files from the driver in there. Geruta 8 лет назад 0

Похожие вопросы