No problem. Here is what I came up with, but now I am getting a weird issue of half my applications that are stored in the Make / Model database not getting installed. One model will install 3 of the 6 apps, then continue on to my option apps, and then any apps set in the task sequence. This seems to be only happening on the Production_Server (Deploy \ Deploy$) and not my MasterMDTServer (LAB \ Distribution$). The MasterMDTServer has SQL Express on it, Production_Server does not. I pushed the Deploy$ to the Production_Server and it points back at the MasterMDTServer for SQL queries. Hope this make sense. Anyone have a clue what I am doing wrong? Here are my two files: userexit.vbs Function UserExit(sType, sWhen, sDetail, bSkip) oLogging.CreateEntry "entered UserExit ", LogTypeInfo UserExit = Success End Function Function setmakealias () logfile = "%temp%\MDT_Make.log" Set FS = CreateObject ("Scripting.FileSystemObject") Set ws = CreateObject ("WScript.Shell") oLogging.CreateEntry "Entered UserExit Function setmakealias" , LogTypeInfo oLogging.CreateEntry "UserExit Function: model=" & oEnvironment.item ("Manufacture") , LogTypeInfo model = oEnvironment.item ("Manufacture") On Error Resume Next Select Case model Case "GATEWA" setmakealias = "Gateway" ologging.createentry "userexit - setmakealias has been set to Gateway" , LogTypeInfo Case Else setmodelalias = Make ologging.createentry "userexit - setmakealias has not been changed. Make: " & Make, LogTypeInfo End Select On Error GoTo 0 End Function Function setmodelalias () logfile = "%temp%\MDT_Model.log" Set FS = CreateObject ("Scripting.FileSystemObject") Set ws = CreateObject ("WScript.Shell") oLogging.CreateEntry "Entered UserExit Function setmodelalias" , LogTypeInfo oLogging.CreateEntry "UserExit Function: model=" & oEnvironment.item ("Model") , LogTypeInfo model = oEnvironment.item ("Model") On Error Resume Next Select Case model Case "E-4500D" setmodelalias = "E-4500S" ologging.createentry "userexit - setmodelalias has been set to E-4500S" , LogTypeInfo Case "E4610", "E-4610D", "E4610D SB", "SYSTEM__" setmodelalias = "E-4610S" ologging.createentry "userexit - setmodelalias has been set to E-4610S" , LogTypeInfo Case "Gateway E100-M", "E100" setmodelalias = "E-100M" ologging.createentry "userexit - setmodelalias has been set to E-100M" , LogTypeInfo Case "Gateway M255" setmodelalias = "M255-E" ologging.createentry "userexit - setmodelalias has been set to M255-E" , LogTypeInfo Case "Gateway Mystique-C", "Gateway M465" setmodelalias = "M465-E" ologging.createentry "userexit - setmodelalias has been set to M465-E" , LogTypeInfo Case "N2DTM026" setmodelalias = "M685-E" ologging.createentry "userexit - setmodelalias has been set to M685-E" , LogTypeInfo Case "Gateway Orion" setmodelalias = "E-265M" ologging.createentry "userexit - setmodelalias has been set to E-265M" , LogTypeInfo Case "Gateway Phantom" setmodelalias = "E-475M" ologging.createentry "userexit - setmodelalias has been set to E-475M" , LogTypeInfo ' Case "" ' setmodelalias = "HP Compaq dc7800p Small Form Factor" ' ologging.createentry "userexit - setmodelalias has been set to HP Compaq dc7800p Small Form Factor" , LogTypeInfo ' Case "" ' setmodelalias = "HP Compaq 2510p Notebook PC" ' ologging.createentry "userexit - setmodelalias has been set to HP Compaq 2510p Notebook PC" , LogTypeInfo Case "nc65xx" setmodelalias = "HP Compaq 6910p" ologging.createentry "userexit - setmodelalias has been set to HP Compaq 6910p" , LogTypeInfo Case Else setmodelalias = model ologging.createentry "userexit - setmodelalias has not been changed. Model: " & model, LogTypeInfo End Select On Error goto 0 End Function CustomSettings.ini (This is the production server's ini)(Changes for Make / Model are in Red)(Changes to get the database to work with optional applications in Blue) [Settings] Priority= SetMake, SetModel, RAdmins, MMSettings, MMApps, MMRoles, RSettings, RApps, Default Properties=modelalias [SetModel] Modelalias = #setmodelalias()# userexit = userexit.vbs [SetMake] Makealias = #setmakealias()# userexit = userexit.vbs [Default] OSInstall=Y UserDataLocation=NONE SkipAppsOnUpgrade=NO SkipAdminPassword=YES SkipBDDWelcome=Yes DeployRoot=\\Production_Server\deploy$ UserID= UserPassword= UserDomain=FBDomain JoinDomain=FBDomain UserDataLocation=NONE SkipComputerName=No SkipCapture=YES SkipProductKey=YES SkipDomainMembership=NO SkipUserData=YES SkipSummary=NO _SMSTSORGNAME=Company [MMSettings] SQLServer=MasterMDTServer Instance=SQLExpress Database=MDTSQL01 Netlib=DBNMPNTW SQLShare=distribution$ Table=MakeModelSettings Parameters=Makealias, Modelalias Makealias=Make Modelalias=Model [MMApps] SQLServer=MasterMDTServer Instance=SQLExpress Database=MDTSQL01 Netlib=DBNMPNTW SQLShare=distribution$ Table=MakeModelApplications Parameters=Makealias, Modelalias Order=Sequence MandatoryApplications=Applications Makealias=Make Modelalias=Model [MMRoles] SQLServer=MasterMDTServer Instance=SQLExpress Database=MDTSQL01 Netlib=DBNMPNTW SQLShare=distribution$ Table=MakeModelRoles Parameters=Makealias, Modelalias Makealias=Make Modelalias=Model
[RSettings] SQLServer=MasterMDTServer Instance=SQLExpress Database=MDTSQL01 Netlib=DBNMPNTW SQLShare=distribution$ Table=RoleSettings Parameters=Role [RApps] SQLServer=MasterMDTServer Instance=SQLExpress Database=MDTSQL01 Netlib=DBNMPNTW SQLShare=distribution$ Table=RoleApplications Parameters=Role Order=Sequence [RAdmins] SQLServer=MasterMDTServer Instance=SQLExpress Database=MDTSQL01 Netlib=DBNMPNTW SQLShare=distribution$ Table=RoleAdministrators Parameters=Role
|