Solved

SCCM 2012 Assigning OU's without multiple Task Sequences

Posted on 2013-06-03
5
383 Views
Last Modified: 2014-10-28
I am trying to find a way to script the assigning of OU's in my task sequence so I don't have to have a TS for each OU.

I need this to work for existing computers on my domain and newly imported.

I work for a large schools system and each classroom/lab has it's own OU.

I have a standard naming convention for the computers of BuildingName-Room#

Do I have to use MDT? If so, how and where in the task sequence do I perform this task?
0
Comment
Question by:kisd
5 Comments
 
LVL 23

Accepted Solution

by:
Nagendra Pratap Singh earned 158 total points
ID: 39218272
Does this work for you?

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Server/Systems_Management_Server/Q_25356093.html

Basically you need to set OSDDomainOUName  using some method.

or you can pre-create the accounts in AD in the specified OU
0
 

Author Comment

by:kisd
ID: 39222181
It is the "some method" that I am looking for help with.
0
 
LVL 17

Assisted Solution

by:Mike T
Mike T earned 157 total points
ID: 39384413
Hi,

"Some method" :)

One solution is to create collections or use existing ones, and set the OSDDomainOUName per collection. e.g.

Collection             OU
Building 1            Chemistry lab
Building 2            Biology lab

An alternative I just thought of is to set the variable as a TS step, but use the conditions tab to set WMI filters (see Hayes Jupe's link below). It's slightly more complicated but avoids the overhead of collections and is more user-friendly further down the line.

References:
http://social.technet.microsoft.com/Forums/systemcenter/en-US/5f1c8340-c15f-4c90-90ed-c9a5c4760008/domain-ou-selection-in-sccmmdt-osd
Using TS variables
Prompting for computer name

The latter could easily prompt for building name instead, or just hardcode it per collection.

Hope that helps,

Mike
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to writing scripts for a Client/Server computing environment it is essential to consider some way of enabling the authentication functionality within a script. This sort of consideration mainly comes into the picture when we are dealin…
Ever notice how you can't use a new drive in Windows without having Windows assigning a Disk Signature?  Ever have a signature collision problem (especially with Virtual Machines?)  This article is intended to help you understand what's going on and…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now