Skip to content

WMI condition for "Apply Network Settings" not working

Featured Replies

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?

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.

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.