I would guess that Win32_IPRouteTable is probably not a WMI class in WinPE. What you are trying to do would be easy if you where using Microsoft Deployment Toolkit :)
What you could do is to run a script early on in the TS to pull out the Default Gateway from Win32_NetworkAdapterConfig
I've attached some Sample code (not tested) that would do something like this.
A better approach with the script would be to do all your network location logic detection in the script, and then set a TimeZone Task Sequence variable inside the script. Then in your TS all you need to do is put a TS Variable Condition on your Apply Windows Settings.
Main Topics
Browse All Topics





by: ServerSupportPosted on 2009-09-01 at 11:58:51ID: 25234773
Any ideas anyone? I've continued tinkering with this and came up with the following WMI condition for the subnets, but now it gives an exit code of 4112 and fails. When I test it in the ConfigMgr console is works tho, giving out a 1 value since my workstation is on the 10.15.80.0 subnet.
Select allOpen in new window