I've copied some imaging scripts from Cool Solutions to help with workstation naming where I work.
The idea is to apply the base image after a test for the computer name in ZIS if no data is present for the computer name then it prompts for the computer name and stores it in a variable but what is happening is that the computer name is not being applied when it reboots and I check ZIS, here's the script that runs from a imaging script bundle:
The hwinfo part doesn't seem to work either but I have yet to investigate it further as I want to get the naming working first.
if test ! $ZISNAME; then
echo -e "No image-safe data found."
echo -e "Assumed to be a new workstation.\n"
while test ! $ZISNAME; do
echo -n "Please enter the workstation name: "
img -rp Base-Image.zmg
if [ `hwinfo --bios | grep -ic 'Product: "TECRA M10"' = "1"` ]
img -rp machine-specific/m10.zmg
if test $ZISNAME; then
Any help appreciated.