How to enable multiply domainjoin depending on default gateway?

Ok so in the environment im working in right now, the SCCM site is working towards two different domains, lets call them “Domain A” & “Domain B”. I would like my Task Sequence to join the computers it the right domain depending on what default gateway they have on the network.

I have tried the following, but im afraid neither works:
Select * from Win32_NetworkAdapterConfiguration where DefaultIPGateway=’x.x.x.x’

This will not work because the adapters are stored in an array.

I also found a way to do this use this query:
Select * FROM Win32_IP4RouteTable
WHERE Destination=’′ AND NextHop=’x.x.x.x’

This queries the routing table, no details about the adapter need to be known. It work’s great just in general and in query’s but it will not work in a Task Sequence.

Looks like i have to install MDT. Thank you for all your answers.

//Karl Wirén


What’s new in SCCM 2012 SP1?

What’s New in Configuration Manager 2012 SP1

One of the most significant changes is support for Windows 8. Configuration Manager SP1 supports Windows 8 in the following ways:

  • You can install the Configuration Manager client on Windows 8 computers and deploy Windows 8 to new computers or to upgrade previous client operating versions. Configuration Manager also supports Windows To Go.
  • Configuration Manager supports Windows 8 features, such as metered Internet connections and Always On Always Connected .
  • You can configure user data and profiles configuration items for folder redirection, offline files, and roaming profiles.
  • You can configure new deployment types for Windows 8 applications, which support standalone applications (.appx files) and links to the Windows Store.

Other significant changes include the following:

  • Support for Windows Server 2012 and SQL Server 2012. Finaly!!
  • Clients are now supported on Mac computers, and on Linux and UNIX servers.
  • Windows PowerShell cmdlets are available to automate Configuration Manager operations by using Windows PowerShell scripts.
  • More flexible hierarchy management with support to expand a stand-alone primary site into a hierarchy that includes a new central administration site, and the migration of a Configuration Manager SP1 hierarchy to another Configuration Manager SP1 hierarchy.
  • Support for multiple software update points for a site to provide automatic redundancy for clients in the same way as you can configure multiple management points.
  • Client notification to initiate some client operations from the Configuration Manager console, which include downloading computer policy and
    initiating a malware scan to be performed as soon as possible, instead of during the normal client policy polling interval.
  • Support for virtual environments that allow multiple virtual applications to share file system and registry information instead of running in an isolated space.
  • Email alert subscriptions are now supported for all features, not just Endpoint Protection.

SCCM2012: Windows Server 2012 & Windows 8 Available to Volume License with SA Customers

If you have Software Assurance on your WS2012 volume licenses then you can start downloading from the Microsoft Volume Licensing Service Center (VLSC).  Those customers can start planning their Hyper-V (see the new features) host upgrades … but hold off if you are using System Center because you will need SP1 for System Center 2012 to continue to manage the upgraded hosts and migrated clusters.


It is not on MSDN/TechNet and is not expected there until after the launch on September 4th.@TechNetUK saw me tweeting on the subject and thankfully cleared up the issue:


I know, it’s very disappointing but that’s how the cookie is crumbling on this one. I’d love to have had it sooner so I could get current screenshots for the new WS2012 Hyper-V book.

Windows 8 is also available to VL w/ SA customers on the VLSC site.


SPLA folks, check your pricelists to ensure you are legit to move up first.

The Microsoft Partner Network download content has not been updated.



SCCM2012: System Center 2012 Service Pack 1 CTP2

The System Center 2012 Service Pack 1 CTP2 includes updates to System Center 2012 for compatibility with Windows Server 2012 Release Candidate including support for Azure VM and capabilities for Hosted Service Providers.

This Community Technology Preview (“CTP2”) enables System Center customers to jointly evaluate System Center 2012 and Windows Server 2012 Release Candidate. CTP2 is for evaluation purposes only and not to be used in production as described in the EULAs associated with the product. No license keys are required to do this evaluation. CTP2 includes updates and enhancements to the following System Center 2012 components:

Virtual Machine Manager

  • Improved Support for Network Virtualization
  • Extend the VMM console with Add-ins
  • Support for Windows Standards-Based Storage Management Service, thin provisioning of logical units and discovery of SAS storage
  • Ability to convert VHD to VHDX, use VHDX as base Operating System image

Configuration Manager

  • Support for Windows 8
  • Ability to deploy Windows 8 Apps
  • Real-time administrative actions for Endpoint Protection related tasks

Data Protection Manager

  • Improved backup performance of Hyper-V over CSV 2.0
  • Protection for Hyper-V over remote SMB share
  • Protection for Windows Server 2012 de-duplicated volumes
  • Uninterrupted protection for VM live migration

App Controller

  • Service Provider Foundation API to create and operate Virtual Machines
  • Support for Azure VM; migrate VHDs from VMM to Windows Azure, manage from on-premise System Center

Operations Manager

  • Support for IIS 8
  • Monitoring of WCF, MVC and .NET NT services
  • Azure SDK support


  • Support for Integration Packs, including 3rd party
  • Manage VMM self-service User Roles
  • Manage multiple VMM ‘stamps’ (scale units), aggregate results from multiple stamps
  • Integration with App Controller to consume Hosted clouds

Service Manager

  • Apply price sheets to VMM clouds
  • Create chargeback reports
  • Pivot by cost center, VMM clouds, Pricesheets

Server App-V

  • Support for applications that create scheduled tasks during packaging
  • Create virtual application packages from applications installed remotely on native server

The System Center 2012 CTP2 can be downloaded at :…s.aspx?id=30133

Technical Documentation for System Center 2012 CTP2 :…s.aspx?id=30134.

System Requirements:

Supported operating systems: Windows 8 Release Preview, Windows Server 2008, Windows Server 2008 R2
The Virtual Machine Manager server for the CTP2 release System Center 2012 SP1 will only run on Windows Server 2012 RC

-via Technet >…s.aspx?id=30133

SCCM2012: When will SCCM2012 be supported with SQL 2012 and Server 2012? And when are the releases?

Here are som facts about releases:


Windows 8

Volume Licensing  and available to partners – 16 August

RTM – 26 October

Windows Server 2012

Volume Licensing and available to partners – not announced “We will also make the software available to our volume licensing customers in the next couple of weeks.”

RTM – 4 September

SQL Server 2012

RTM – 6 Mars

SCCM 2012 SP1

Sccm2012 with support for Windows 8 OSD and Server2012

CTP2 Released Today 15 August


So it seems at the latest we will get to work with all of these combined is the 4 september, depending on the SP1 for CM12.