I found an article( HOWTO6474 ) explaining how to distribute an image to remote sites by pulling the from a local site store (i'm assuming that the site store does not have to be a pxe server).
However the article is not very descriptive. (pasted the article at the bottom)
my server name = ns6
I'm i correct in assuming that i do not need pxe servers on all local sites?
(pic1) should my winpe path be \\ns6\express or should it be a variable like \\%SERVERNAME%\express?
(pic2) i took the script and made getsrv.bat and added it to the startup folder.... should i add the "server.lst" in the startup folder aswell?
(pic3) when i create the distribute image job should my path be "G:\image path" or some like \\"%SERVERNAME%\image path" ?
Article pasted below.....
Question
The DS Image Distribution Framework is a utility that allows large customers ensure that a single PXE configuration is available across the enterprise and different PXE Servers.
It uses a mechanism that looks up the local file server IP address before setting a DOS environment variable that defines the local share to which the agent will connect a given drive (see article 31186).
How can this feature be ported to the Windows automation environment?
Answer
The DS team has incorporated some hooks in the WinPE loading process to allow for OEMs or customers to load custom elements in the registry or WinPE run time environment.
This hook will execute anything that is in the X:\startup folder, as long as the extension are registered with an executable type (so .reg, .bat, .vbs, or .cmd should all execute by default).
This allows you to add VBS scripts to look up the current IP address and, based on the server.lst file, define the entry that should be used to map the local file server before the AClient is loaded.
Here is a batch script that will retrieve the WinPE IPAddress, lookup the server.lst file and set the share (G:\) to the local PXE server.
@echo off
cls
set Debug=0
:GetIpAddress
IPCONFIG |FIND "IP" > %temp%\TEMPIP.txt
if not %errorlevel%==0 goto OUT
FOR /F "tokens=2 delims=:" %%a in (%temp%\TEMPIP.txt) do set IpAddress=%%a
del %temp%\TEMPIP.txt
set IpAddress=%IpAddress:~1%
if %Debug%==1 echo System IP address is: %IpAddress%
:GetSubnetAddress
set i=0
:Loop
if %i% EQU 3 Goto OUT
set /a i+=1
for /f "tokens=%i% delims=." %%a in ("%IpAddress%") do set v=%%a
if %i% == 1 (set s=%v%
) else set s=%s%.%v%
Goto Loop
:OUT
set Subnet=%s%
if %Debug%==1 echo Subnet address is: %Subnet%
:GetPXEServer
type server.lst | find "%subnet%" > %temp%\TEMPPXE.txt
for /f "tokens=2 delims=," %%a in (%temp%\TEMPPXE.txt) do set PXEServer=%%a
del %temp%\TEMPPXE.txt
if %Debug%==1 echo Local PXE Server is: %PXEServer%
:MapPXEServer
if %Debug%==1 (echo net use G: "\\%PXEServer%\eXpress" /yes <nul
) else net use G: "\\%PXEServer%\eXpress" /yes <nul
Note: The shared folder is set to eXpress, but this could be changed. The batch and server.lst should be in the same directory