Skip to content

Some help with TS Variable for Computer Name

Featured Replies

Hello all,

 

i've been using SCCM to Deploy a image of our XP Machines. Works pretty well except for one thing.

We identify our machines by our site codes, which differ for each country. Now i want to deploy software during my OSD TS only to choosen countries.

The machine is named and joined a domain already.

I want it to be decieded by the computer name it has.

 

What I tried is using if normal TS Variable _SMSTSMachineName equals "XXX%" where the XXX identifies the site, followed by model and our own unid. That did not work as he could not find a match here. I've tried on reading up on MS and other forum but somehow i do not get further with that question.

 

Maybe someone can shoot me a hint in that direction.

 

Any help is appriciated. Thanks!

 

Cheers

  • Author

Is this for a WMI query? Did you try using "LIKE" instead of "EQUALS"?

 

I wanted to use a normal TaskSequence Variable. If you choose that in the TS it offers you only equals or greater than etc...

 

I don't know if i could use a normal WMI query as I am not sure that the computer name object is already set then?

 

I ahve attached a picture to maybe make my problem more clear hopefully. :)

 

Thanks!

 

Cheers

post-9591-0-16360600-1303188990_thumb.jpg

  • Author

I believed i have solved the issue by going a WMI Query:

 

select * from Win32_ComputerSystem where Caption like 'HFI%'

 

In theory it works, i have to test it now in my deployment.

 

Cheers

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.