I dont see the difference between the 2 commands?
The command that dosnt work has the system variable surrounded by a dual percent sign (%%) i assume landesk does this so as it dosnt conflict with the template variables, but it also seams to cause the command to not run on this image.
1 of 1 people found this helpful
It shouldnt... Do you have systemroot also as Provisioning variable defined somewhere? Frank - Axle-IT
Just checked both the global and template variables, deffinately not defined in those.
Also just tried cloning the template and defining a different image to it alltogether. this worked perfectly. Same landesk process, same unattend file just different images. Both the images run Windows 7 Enterprise 32bit that started as the same cd.
So you actually got me thinking and i started doing some more searching on the issue only started looking at the system variable. I have found many threads on the topic but only one that is any where near recent http://community.landesk.com/support/thread/13735?start=15&tstart=0 . It appears that CTOS is around the issue however based on my findings i think it is doing 2 main things wrong.
First is that it is putting the script in the AuditUser phase rather than the Specialize phase.
Second it then dosn't appear to change the enviroment variable back into a format that windows understands eg. it is leaving the the %% in place rather than changing it back to % for windows.
not sure what is causing this.. have done a tidyup on the unattend file and am letting it tryagain out of desperation overnight. have to wait till moring to check how it goes.
Ok so i have found the issue.
The c:\windows\setup\scripts\setupcomplete.cmd file had a single line of code in it. when comparing the template to the resulting image push i found that landesk was putting its command at the end of the origional instead of on a new line, causing an error with no feedback to the user. deleting the file fixed the issue so all good now.
Camberwell High School