Solved

SCCM 2012 Assigning OU's without multiple Task Sequences

Posted on 2013-06-03
5
400 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

730 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