I have 5 sites that currently have 5 separate, identical task sequence...but one difference is there is a program one of my techs wrote that renames the computer to, for example, MPHS-SerialNumber.
Our sites are as follows:
MPHS-
MPJH-
MPES-
so forth and so on
Each site has their own gateway/subnet, and so if I was able to put this ALL into ONE task sequence that would be amazing.
If given this, how would you all do this? I know that I can add the scripting/program/etc for each site to the task sequence, and then under options apply a conditional WMI query based on the subnet/gateway the client resides in, but I don't know HOW to do this.
I've tried this:
Select * From Win32_NetworkAdapterConfiguration Where DefaultIPGateway="10.80.16.1"
And I get this error during the task sequence:
The task sequence execution engine failed evaluating the condition for the action (MPHS Rename) in the group (Site-Specific Renaming). Error code 4119. The operating system reported error 53: The network path was not found.
I'm at a loss for how to achieve this, but i know it's something simple i'm missing...or I just need to completely re-evalute how we're renaming these computers and do it differently...anyone out there generous enough to help me out with this task would be greatly appreciated!
Thanks so much!