Having followed the guidlines laid down in this very helpfull Blog below im now hitting an issue.
http://scug.be/sccm/2010/10/01/configmgr-osd-task-sequence-success-or-failure-notification/
The emails are arriving OK on failure or sucess but it reports back the initial MININTXXXX Host name Instead of the Host name I set using the variables within the script (%deployroot%\scripts\ztitatoo.wsf) - (shown below)
oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Deployment 4\OSD Advertisement ID", oEnvironment.Item("_SMSTSAdvertID")
oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\NYCC\Asset Information\Computer Name", oEnvironment.Item("OSDComputerName")
oShell.RegWrite "HKEY_LOCAL_MACHINE\Software\NYCC\Asset Information\Site Code", oEnvironment.Item("OSDSiteCode")
Gathered by the collection Variables below.
It Should report back with a Host name of NY123456. (The build engineer provides this upon rebuild)
This is a full wipe and deploy method using Nework driven USB sticks
Ive tryed both Machinename & OSDMachinename variables within the Powershell Script triggered by the status filter rules to no Avail.
Any Ideas. ??
- Edited by Craig M Wright NYCC Tuesday, June 04, 2013 9:00 AM