The background of this project
Because there is no DHCP in LV reseller, and the network is limitted less than 100M, Most of the files need to put in local Usb drive in advance, if needed, deployment os will access these files from local Usb drive, not download these files from core server.
The request from LV reseller
Boot client machine into WinPE through Usb drive insteading of Pxe Rep
Provide OSD deployment script menu
Provide UI to input the static IP address and mask, gateway to setup network in WinPE
Add driver
Provide UI to select different location to rename the computername by this section
Add the client machine into LVMH AD automatically
Can deploy agent to client machine, and install antivirus program and active the Operating System.
LV门店没有DHCP,只能通过窄带跟核心服务器通讯,因此需要把image等超过100M的文件都放到本地U盘,部署操作洗头膏时用到这些文件都从本地读取,LV门店的需求如下:
*U盘启动门店终端
*进入landesk pe
*提供界面手工输入IP地址
*选择部署脚本
*开始进行系统部署
*加载驱动程序
*重启后再次提供UI界面人工输入IP地址
*提供UI,选择国家和地区(根据国家选择,决定机器名前缀 如CN-)
*自动加入LVMH AD
*自动部署landesk客户端,卡巴防病毒,激活win7系统
Configuration steps:
1. Create bootable USB drive:
1.1 Login Win Console to create bootable USB drive,please refer to following screenshot:
1.2 Update boot.wim:
Copy boot.wim to local drive ,for example d:\lv,Use the following command to extract boot.wim:
dism /mount-wim /wimfile:d:\lv\boot.wim /index:1 /mountdir:d:\lv\mount
1.2.1 Replace d:\lv\mount \windows\system32\startnet.cmd
1.2.2 Copy netsh.hta to d:\lv\mount
1.2.3 shutdown all the folder and program which accessed mount folder, Use the following command to repackage boot.wim:
dism /unmount-wim /mountdir:d:\lv\mount /commit
1.3 Copy the following files to U drive:
1.3.1 Copy boot.wim to u drive’s boot folder
1.3.2 Copy netsh.hta to u drive’s root folder
1.3.3 Copy image file to u drive’s root folder
1.3.4 Copy the following files to U drive’s root folder:
AssignDrvC.txt
…..
AssignDrvH.txt
2. Configure OSD Script
2.1 Create OSD Script, Delete the following command:
diskpart /s X:\LDClient\rmvol.txt
2.2.Modify the following command to rename the computer name
REMEXEC39=ldrun tokreplw C:\unattend.xml COMPUTERNAME=%Location%%System - Serial Number%
REMEXEC40=ldrun x:\Location.bat
2.3 Modify the following command to update the location of image files’ s location:
REMEXEC25=ldrun h:\IMAGE_~2\LD9.5\imagew.exe /r /o /d:0 /f:"""z:\WIN7_X~1.TBI""" /rb:0
2.4 Configure the IP address for the Operation system:
REMEXEC46=cmd /c xcopy /y /e x:\netshOS.bat C:\
2.5 The other thing need to do is configuring xml file:
you can find the location to configure this commander here:
Pre-boot commands-> Enter ‘RunOnce’ commands……
After configure successfully, we need to adjust this command to the first one, It will be the last one by default:
<FirstLogonCommands>
<SynchronousCommand>
<CommandLine>c:\netshOS.bat</CommandLine>
<Description></Description>
<Order>1</Order>
</SynchronousCommand>
3. Deployment on the client machine:
3.1 Configure the BIOS settings:
Boot from Usb drive
3.2 Boot the client machine from Usb drive
Client machine will boot into WinPE through Usb drive, Please input IP address and mask and Gateway etc, please refer to the following screenshot:
3.3 After the OSD Deployment Script Menu pop up, Please choose the related OSD script to run, if it execute successfully, the operation system can be deployed to client machine successfully.