Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MDT OSDComputerName by geographic department, tasksequence version and serialnumber

Posted on 2014-07-22
8
Medium Priority
?
482 Views
Last Modified: 2014-07-23
Hi all,

I have only worked with MDT for 1½ month, however i got a good feeling, but i don't seem to be able to find answers to my current question:

To start: We do not have SCCM, just clean WDS and MDT 2013

i have created a successfully deployment in our company, for our two departments, this i have done by create OSDcomputername selection by DefaultGateway selection.

However, we have two task sequences, TS "A0" and "A1", theese are two independent images, for our Client Service department and for our Development department.

So what i would like, is If TS A0 is selected from Denmark the computername will be DEN7A0-%SerialNumber% and for Sweden it will be SWE7A0-%SerialNumber% and so for TS A1.

I don't know if i could create some kind of custom variable to define the Geographic locations under the task sequence step in CS.ini instead of the DefaultGateway priority selection.

Could you help me figure out this?


Currently my example of cs.ini
[Settings]
Priority=Model, DefaultGateway, TaskSequenceID, Default
Properties=MyCustomProperty

[DefaultGateway]
	x.x.1.1=Denmark
	x.x.2.1=Sweden

[Denmark]
OSDComputername=DAN7A0-%SerialNumber%
[Sweden]
OSDComputername=SWE7A0-%SerialNumber%

[A0]
OSInstall=Y
	SkipCapture=YES
	SkipAdminPassword=YES
	SkipProductKey=YES
        ....
[A1]
OSInstall=Y
	SkipCapture=YES
	SkipAdminPassword=YES
	SkipProductKey=YES
        ....

Open in new window



Regards
Anders
0
Comment
Question by:Anders Kofoed
[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
  • 4
  • 3
8 Comments
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 40213465
DefaultGateway should take care of it
0
 

Author Comment

by:Anders Kofoed
ID: 40213580
Nagrendra, I don't think you understood my question correct.

It is true i can define what office by DefaultGateway.
Right now Country is defined in the DefaultGateway settings for Sweden or for Denmark. but it does not change what TaskSequence that is selected. so if i select TS: A1 computername will be DEN7A0-%serialnumber% (see the customsettings part for define OSDComputerName below:


[DefaultGateway]
      x.x.1.1=Denmark
      x.x.2.1=Sweden

[Denmark]
OSDComputername=DAN7A0-%SerialNumber%
KeyboardLocale=da-DK
[Sweden]
OSDComputername=SWE7A0-%SerialNumber%
KeyboardLocale=sv-SE

What i want to is define so computername will be selected somehow like (see the diagram)

1st part: Location (set by DefaultGateway for Denmark or Sweden) <-
2th part: Windows Version (Windows 7)
3rd part: What Image/TaskSequence is deployed (A0 or A1)
4th part: Computer Serialnumber (%serialnumber%)

Diagram of OSDComputerName Example

how would i comply the settings to be as the diagram?
0
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 40213593
You can change variables in task sequence I guess. I will check more.
0
How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 40213624
0
 
LVL 24

Expert Comment

by:Nagendra Pratap Singh
ID: 40213627
0
 
LVL 17

Accepted Solution

by:
James Haywood earned 1200 total points
ID: 40213674
The script ZTIGather.wsf retrieves information during the build. Have a look at the information retrieved during a winpe session and depending on the AD sites you could try something like

OSDComputerName=%Site%-%SerialNumber%
0
 

Author Comment

by:Anders Kofoed
ID: 40213754
I found another way to solve this:

Refer to:
http://deploymentbunny.com/2013/03/06/back-to-basiccustomsettings-inisample-2/

Refer to above, I created a property called %OSDLocation% to define location in for the computername

it resulted in:

Priority=Model, DefaultGateway, TaskSequenceID, Default
Properties=MyCustomProperty, OSDSite

[DefaultGateway]
      x.x.1.1=Denmark
      x.x.2.1=Sweden

[Denmark]
OSDlocation=DEN
KeyboardLocale=da-DK
[Sweden]
OSDlocation=SWE
KeyboardLocale=sv-SE

[A0]
OSDComputername=%OSDSite%7A0-%SerialNumber%	
[A1]
OSDComputername=%OSDSite%7A1-%SerialNumber%	

Open in new window



This will output Computer is from Sweden or Denmark, and if TS A0 or A1 is deployed
0
 

Author Closing Comment

by:Anders Kofoed
ID: 40213755
I found this working
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Background Information Recently I have fixed file server permission issues for one of my client. The client has 1800 users and one Windows Server 2008 R2 domain joined file server with 12 TB of data, 250+ shared folders and the folder structure i…
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

722 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