Jump to content


lindevang

WMI condition for "Apply Network Settings" not working

Recommended Posts

Hi there

 

I've a SCCM 2012 setup on two sites and on DP on each of them.

 

I want to use the same Task Sequence to deploy Windows 7 on both sites and want the Task Sequence to put the computer into an OU that matches the site.

 

I've tried several conditions to determine what site the computer running the TS is on, but with no luck.

 

I'm currently using following WMI query:

Select * FROM Win32_IP4RouteTable WHERE Destination='0.0.0.0' AND NOT NextHop='192.168.128.1'

post-16830-0-69017300-1351148434_thumb.jpeg

(The default gateway of the site WAR is 192.168.128.1 so i simply do a "NOT" for site BAL)

 

If I do a "Test query" it verifies it, and says that the machine matches the condition.

 

Any suggestions?

Share this post


Link to post
Share on other sites

My suggestion for you is to use the Microsoft Deployment Toolkit. Run the Gather command from the MDT which will give you a variable "DefaultGateway001", which you can use.

You can also apply the site settings through the customsettings.ini of the MDT. This way you don't need to define a single task sequence step for every location.

The WMI Class you are trying to query is probably not available during the PE phase.

Share this post


Link to post
Share on other sites

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

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.