Have a status filter rule set to run a powershell script when a OSD deployment has evenit id of 11171 (success)
The powershell uses the computer name passed to it to remove the device from config manager. The issue is the computer name in the Status Message is MININT and not the computer name changed by the tech. So when the script runs when 11171 is recorded it does not get the correct computer name and can not delete it. Is there a way to get resource ID into the Status message of the task sequence? Then I could use that to delete it.
The powershell uses the computer name passed to it to remove the device from config manager. The issue is the computer name in the Status Message is MININT and not the computer name changed by the tech. So when the script runs when 11171 is recorded it does not get the correct computer name and can not delete it. Is there a way to get resource ID into the Status message of the task sequence? Then I could use that to delete it.