Why not run a script that looks at the OSDComputerName variable and then
sets a different variable based on whatever logic you use to place
computers in OUs?

On Tue, May 12, 2015 at 3:54 PM, Murray, Mike <[email protected]> wrote:

>  I’ve been asking myself that question. I can’t think of anything for
> now. But I worked around the issue using OSDComputerName great than and
> less than.
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Daniel Ratliff
> *Sent:* Tuesday, May 12, 2015 12:37 PM
> *To:* [email protected]
> *Subject:* [mssms] RE: OSD - WMI query for computer name not working as
> expected
>
>
>
> Age old question..what changed?
>
>
>
> *Daniel Ratliff*
>
>
>
> *From:* [email protected] [
> mailto:[email protected] <[email protected]>] *On
> Behalf Of *Murray, Mike
> *Sent:* Tuesday, May 12, 2015 3:24 PM
> *To:* [email protected]
>
> *Subject:* [mssms] RE: OSD - WMI query for computer name not working as
> expected
>
>
>
> The OSDComputerName value is correct, it’s just not getting set in WMI at
> this point during imaging, which is what I use to query the computer name
> (Select * from Win32_ComputerSystem Where Name Like 'SSC250P%'). But
> there’s no “LIKE” option when using a TS variable. What’s weird, we didn’t
> have this issue before.
>
>
>
> *From:* [email protected] [
> mailto:[email protected] <[email protected]>] *On
> Behalf Of *Daniel Ratliff
> *Sent:* Tuesday, May 12, 2015 11:31 AM
> *To:* [email protected]
> *Subject:* [mssms] RE: OSD - WMI query for computer name not working as
> expected
>
>
>
> The OSDComputerName gets put down during the Setup Windows and ConfigMgr
> step. You could easily add a run command line before your step to set
> another variable based off what you need as the computername. Basically
> gather the OSDComputerName variable, see if it matches your conditions, and
> set another variable to something you can query with the condition.
>
>
>
>
> http://www.potentengineer.com/using-powershell-to-set-osd-task-sequence-variables/
>
>
>
> *Daniel Ratliff*
>
>
>
> *From:* [email protected] [
> mailto:[email protected] <[email protected]>] *On
> Behalf Of *Murray, Mike
> *Sent:* Tuesday, May 12, 2015 1:12 PM
> *To:* [email protected]
> *Subject:* [mssms] OSD - WMI query for computer name not working as
> expected
>
>
>
> We have a domain join step that evaluates conditions based on an HTA the
> tech fills out before imaging begins. Depending on these conditions, the
> computer joins the domain and is placed in the appropriate OU. There are 3
> main conditions we evaluate:
>
>
>
> OSDRole – TS variable, can be lab, staff, etc.
>
> OSDBusinessArea – Another TS variable, based on department
>
>
>
> These evaluate fine in our conditions when joining the domain. But the
> other condition does a WMI query for the computer name. Unfortunately, at
> this point in the imaging process, the computer name in WMI is
> MININT-XXXXXXX, so it evaluates as FALSE.
>
>
>
>
>
> Do we need to move this step down further in our TS? I don’t know how else
> to evaluate the computer name (OSDComputerName is available, but there is
> no “LIKE” statement).
>
>
>
>
>
> Any help appreciated!
>
>
>
>
>
> Best Regards,
>
>
>
> Mike Murray
>
> Desktop Management Coordinator - IT Support Services
>
> California State University, Chico
>
> 530.898.4357
> [email protected]
>
>
>
>
>
>
> The information transmitted is intended only for the person or entity to
> which it is addressed
> and may contain CONFIDENTIAL material. If you receive this
> material/information in error,
> please contact the sender and delete or destroy the material/information.
>
>
>
>
>
>
> The information transmitted is intended only for the person or entity to
> which it is addressed
> and may contain CONFIDENTIAL material. If you receive this
> material/information in error,
> please contact the sender and delete or destroy the material/information.
>
>
>
>



Reply via email to