Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
171 views

Scripted WinPE with PXE

Anybody has solution to use scripts with WinPE imaging environment running PXE mode?

Like in the linux environment I would like to add imaging script what can download the machine from tftp and run automatically to set partitions, and restore/take images.

 

Labels (1)
0 Likes
4 Replies
Micro Focus Expert
Micro Focus Expert

Re: Scripted WinPE with PXE

No really for FTP 

See -  https://www.novell.com/documentation/zenworks-2020/zen_cm_preboot_imaging/data/b18bu5g6.html?view=print

Though if you really wanted to pull specific files from your Imaging Server, you can do that in your scripts to do a TFTP get.

Note: ZCM 2020 includes PROXYADDR as a Windows Variable which may be useful in your scripting.

 

--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: Scripted WinPE with PXE

Thanks Craig.

Can I do it without bundles? Like in linux imaging. Use the settings.txt to set tftp get commands to send the script to the imaging environment and add IMGCMD parameter to the cfg file run automatically a script with the z_maint.cfg file, and to run automatically the downloaded scripts.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Scripted WinPE with PXE

It is not possible to send boot Parameters to WinPE similar to Linux.

If you don't want a scripting bundle, you could edit your WIM to add scripts there that could then pull from your imaging server.  It could even be a simple PowerShell Script to bring up a pretty GUI to select your Custom Images.  The data for the script could be automatically pulled from a TFTP or  Windows Share so it could be managed from a central point and no need to update the WIM with each change.

--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
grahamch Super Contributor.
Super Contributor.

Re: Scripted WinPE with PXE

I didn't want any open shares so we created a Scripts directory in the root of the boot.wim and put our scripts in there, prior to uploading in ZCC.

We've created an executable that, is run on boot, that will allow the tech to enter/accept the name of the computer and select the desired image to be used.  The executable also determines what the correct PROXYADDR is based upon the IP address of the computer and the motherboard model code (for the driver package image).  The executable then launches a vbs script, passing the computer name,  PROXYADDR address and another true/false parameter.

The script deletes/creates the partitions, restores the images and let's you know when the imaging process is complete.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.