SCCM Email Notification Upon Failure and Success - Wont display correct host name in Email.

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. ??


June 4th, 2013 8:29am

I have used this status filter rule. In the mail you would get the computer name whatever is in the Status messages.

By the time your machine is built with success code 11143, the computer name could be MININTXXXX and that is why you have that in the mail.

Regards,

Manohar Pusala

Free Windows Admin Tool Kit Click here and download it now
June 13th, 2013 12:17pm

Unfortunately the trigger i am activating the email from has the host name of the machine set to the winpe instance. so i need to identifiy a unique trigger which has the correct host name of the machine but unfortunately i cant seem to fine a suitable one.

I have made do with a link back the he task sequence report. and ive also incorporated the MDT OSD Results app at the end of the task sequence.

So this gives a visual success or failure that doesn't disapear after 15 mins.

This looks like a limitation of the system based on my needs. no big deal.

June 27th, 2013 10:16am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics