lindevang Posted October 25, 2012 Report post Posted October 25, 2012 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' (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? Quote Share this post Link to post Share on other sites More sharing options...
lindevang Posted October 29, 2012 Report post Posted October 29, 2012 Not any suggestions? Quote Share this post Link to post Share on other sites More sharing options...
Peter33 Posted October 29, 2012 Report post Posted October 29, 2012 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. Quote Share this post Link to post Share on other sites More sharing options...