?
Solved

SCCM 2012 Assigning OU's without multiple Task Sequences

Posted on 2013-06-03
5
Medium Priority
?
410 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 24

Accepted Solution

by:
Nagendra Pratap Singh earned 632 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 18

Assisted Solution

by:Mike T
Mike T earned 628 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

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
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…
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…

771 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