Friday, January 09, 2009
Deployment Forum HomeDeployment Forum ArticlesDeployment Forum Download LibraryDeployment Forum Member BlogsDeployment Forum Community Forums
Member Login
StandardLiveID


Register
Forgot Password ?



Guests can view and read messages in the community forums, but you must register and log in to Deployment Forum before you can post messages. Click Register at the top of this page. Before posting messages, please read the forum guidelines at the bottom of this page.

Subject: Application by location and Make and Model
Prev Next
You are not authorized to post a reply.

AuthorMessages
patrickm12981User is Offline

Posts:44

Send Message
07/10/2008 2:39 PM  

I have an application that I need to install based on location and Model. i.e. all Dell D630s in china.

Any pointers or advice on the best way to do this?

KonradUser is Offline

Posts:67

Send Message
07/10/2008 6:15 PM  
So in your example, you only want to install particular apps for D630s that are in China, and other D630s are not to get these apps and/or are to get different apps?

Something like this may work:

[Settings]
Priority=DefaultGateway, Default

[DefaultGateway]
192.168.0.1=China
11.1.1.11=China
172.28.20.1=Europe
10.28.20.1=Europe

[China]
Subsection=China-%make%-%model%

[Europe]
Subsection=Europe-%make%-%model%

[China-Dell Inc.-Latitude D630]
Applications001={app 1's guid}
Applicaitons002={app 2's guid}

[China-Dell Inc.-Optiplex 755]
Applications001={another app's guid}
Applicaitons002={app 2's guid}

[Default]
...normal default section stuff

Alternatively, something like this might work (not so sure about this way):
[Settings]
Priority=LocationMakeModel, Default

[LocationMakeModel]
Subsection=%defaultgateway001%-%make%-%model%

[ 10.0.0.10-Dell Inc.-Latitude D630]
Applications001={app 1's guid}
Applicaitons002={app 2's guid}
patrickm12981User is Offline

Posts:44

Send Message
07/10/2008 6:24 PM  

I have multiple default gateways and multiple sites. This would proably work  but I think I would rather integrate it into the DBase somehow. Making for a lot shorter CS file. The application is actually the same application at every site but has different command line parameters for each site. So I was thinking I would load it into MDT as seperate applications.

 

KonradUser is Offline

Posts:67

Send Message
07/10/2008 7:12 PM  
I personally prefer to put stuff in the database over the cs.ini file myself.

Could you have MDT install your application by calling a vbscript which does some logic to work out which command line parameters to use and then launches the install?

The only two options I can see to use a database would be to either (a) maintain a different database per location, or (b) create a new table in the database and use that.

Option (b) would involve:
1) Creating the table, and possibly a corresponding view;
2) Some mechanism to populate/maintain the table (like linking to it with MS Access) given it won't be visible from within the Deployment Workbench
3) Updating the cs.ini to query this new table

For a single application, I'd probably just go with wrapping the install with a vbscript.
patrickm12981User is Offline

Posts:44

Send Message
07/11/2008 1:26 PM  

So maybe I don't want to use the default gateways, but what about the WDSServer?

[Settings]
Priority=Laptop,....

[Laptop]
 IF wdsserver=SERVERA then
  SERVERA=US
 END IF
 
[US]
Subsection=US-%make%-%model%

[US-Dell-Latitude D630]
MandatoryApplications={guid} 
 

 or this may even work better becausee this application only goes on all laptops.

[Settings]
Priority=Laptop,....

[Laptop]
 IF wdsserver=SERVERA and IsLaptop=TRUE then 
 MandatoryApplications={guid} 
 END IF
 
 

patrickm12981User is Offline

Posts:44

Send Message
07/11/2008 3:43 PM  

Thsi wht I have come up with. I know when it queries WMI it pulls a variable called IsLaptop. So I would think this should work. I probably have something wrong somewhere. Any help would be appreciated.

[Laptop]
IF wdsserver=servera and ISlaptop=TRUE then
 MandatoryApplications={3184536b-6ed4-4281-9178-ce6cc421c9fe}
else if wdsserver=serverb and ISlaptop=TRUE then
 MandatoryApplications={fb545890-6ebd-4211-bbc8-db3630ee44fe}
else if wdsserver=serverc and ISlaptop=TRUE then
 MandatoryApplications={12545ab2-40fb-4874-ac42-9310301785ca}
else if wdsserver=serverd and ISlaptop=TRUE then
 MandatoryApplications={a6142ebb-2b04-43be-ad0f-db1b6f03eedb}
End if

KonradUser is Offline

Posts:67

Send Message
07/13/2008 6:49 PM  
I don't think you can do "if ... then .. else" logic directly in a cs.ini file quite like that. You'll need to do it via "Subsections", such as this:

[Settings]
Priority=ByLaptopAndWDSServer, Default

[ByLaptopAndWDSServer]
Subsection=ByLaptopAndWDSServer-%IsLaptop%-%wdsserver%

[ByLaptopAndWDSServer-True-servera]
MandatoryApplications001={3184536b-6ed4-4281-9178-ce6cc421c9fe}

[ByLaptopAndWDSServer-True-serverb]
MandatoryApplications001={fb545890-6ebd-4211-bbc8-db3630ee44fe}

[ByLaptopAndWDSServer-True-serverc]
MandatoryApplications001={12545ab2-40fb-4874-ac42-9310301785ca}

[ByLaptopAndWDSServer-True-serverd]
MandatoryApplications001={a6142ebb-2b04-43be-ad0f-db1b6f03eedb}
patrickm12981User is Offline

Posts:44

Send Message
07/14/2008 1:32 AM  
That makes sense. It's not working. I will try what you suggested and post my results.
patrickm12981User is Offline

Posts:44

Send Message
07/14/2008 4:11 PM  

I tried what you suggested and it didn't work either until I took out the wdsserver portion. Then it worked fine. It's like the variable is not available.

This is what works:

[ByLaptopAndWDSServer]
Subsection=LaptopAndWDSServer-%IsLaptop%

[LaptopAndWDSServer-True]
MandatoryApplications001={3184536b-6ed4-4281-9178-ce6cc421c9fe}

patrickm12981User is Offline

Posts:44

Send Message
07/14/2008 5:57 PM  

AH HA! Doh! What you supplied worked! Just have to use the FQDN. I hate it when that happens.

 

ByLaptopAndWDSServer]
Subsection=LaptopAndWDSServer-%IsLaptop%-%wdsserver%

[LaptopAndWDSServer-True-servera.*.*]
MandatoryApplications001={3184536b-6ed4-4281-9178-ce6cc421c9fe}

You are not authorized to post a reply.
Forums > Deployment Solutions > MDT 2008 > Application by location and Make and Model



ActiveForums 3.7
Forum Policies
Minimize

These forums are a user-supported community for IT professionals to exchange deployment tips, solutions, and techniques. For the benefit of all Deployment Forum members, please observe the following guidelines when posting to these forums:

  • We reserve the right to remove any message. Our moderators will remove all messages that are not respectful or productive. Profanity, racism, prejudice, and flaming are not tolerated.
  • Do not advertise products or services. Our moderators will remove all advertisements or service announcements. Product and service recommendations from active Deployment Forum members are encouraged, however.
  • Make sure your question isn't already answered. Before posting questions, search the forums. After ensuring that your questions are unique, post them to the most appropriate forum. This will help reduce noise in the forums.
  • Help make the most of each thread. Do not post unrelated messages to a thread. Also, if you've resolved a question outside of these forums, please share the solution with other members by posting it back to the thread.
  • Do not share confidential information. Confidential information includes product keys and addresses. Our moderators will edit any message containing confidential information, so double-check messages and their attachments before posting them.
  • Post messages using only the English language. For the benefit of all Deployment Forum members, please post your messages using the English language.

We hope that you enjoy using this community. Please submit your comments and feedback on the Comments and Feedback page or post them to the Comments, Feedback forum.



Privacy Statement  |  Terms Of Use
© 2007 Jerry Honeycutt