Quantcast
Channel: Microsoft Deployment Toolkit forum
Viewing all articles
Browse latest Browse all 11297

MDT Automated build - Different applications with VBScript/Customsetting.ini

$
0
0

Heya all,

I am currently having a confusing issue I think I am making far to difficult. Basically we have different applications installed on different computers depending the department they are in. I am trying to work out a Zero-Touch way of the task sequence installing them without a technician having to be there. On anew computer scenario these would be tickbox applications.

I have experimented different ways of doing this and came down to VBScript (I am NO genius at VBScript, I only really know Powershell & Batch) So far as I am aware you seem to be able to run VBScript functions in the Customsettings.ini or something like that. So a made a function called SIMS() to see if SIMS application is installed, just by doing a statement for if the file exists that SIMS launches from.

Here is my customsettings.ini for all of this. sorry if im being stupid and you cannot run VBScript like this and have to add it to ZTIGather or something. I just do not want to edit a TS every time i want to make one. I have made bold the VBScript and where i call the function.

Function SIMS()
 dim SIMSPath
 SIMSPath = "C:\Program Files\SIMS\SIMS .net\Pulsar.exe"
 dim SIMSGUID
 SIMSGUID = "{656d8d77-3ec9-40da-81bd-0560d62b316c}"
 If (CreateObject("Scripting.FileSystemObject").FileExists(SIMSPath)) Then
  WScript.echo(SIMSGUID)
  End if
 
End Function


[Settings]
'In Priority setting there is the BeginningFix section for thing that need top be run first. For example. Disabling windows update. ******* auto logon.
'The UserApps section is for applications to be installed on end users computer. This is for things that get deployed to every computer EG: Antivirus software.
'The EndFix section is to apply fixes to run last in the build. For example this enables the windows update service.

Priority=Model,BeginningFix,UserApps,ByVMType,Default,EndFix

 

SkipBDDWelcome=YES


[Default]
'Organisation Name
_SMSTSOrgName=Highworth Grammar School

'Install the Operating System
OSInstall=Y

'Skip the full wizard pages
SkipWizard=YES

'Skip Final Summary of OS Deployment so computer needs no user interaction before finishing fully
SkipFinalSummary=YES

'Domain join credentials and domain
JoinDomain=*******
DomainAdmin=********
DomainAdminDomain=*******
DomainAdminPassword=*******

'Connect to Network Share Credentials
UserDomain=******
UserID=*******
UserPassword=******

'Finish Action for when the Build finishes
FinishAction=RESTART

'Language Settings, These should already be set in the WIM/Unattend.xml
UILanguage=en-GB
UserLocale=en-GB
KeyboardLocale=0809:00000809
TimeZoneName=GMT Standard Time

'WSUS server config for windows updates during the build
WSUSServer=http://*******:8530

'Monitoring Part of the MDT to see builds from the office
EventService=http://*******:9800

'Type of computer deployment. REFRESH take current computer info and uses that
DeploymentType=REFRESH

'Setting the name of the current computer to what the computer will be
OSDComputerName=%computername%

'Task Sequence to run in refresh mode
TaskSequenceID=WIN7X64002

[BeginningFix]

'****** Auto Login - Runs on all clients
MandatoryApplications001={a87efb34-7d8e-487d-a966-bd34855dbca6}

'Stop Windows Updates and Disable - Runs on all clients
MandatoryApplications002={9b795345-521c-4e5b-aa1b-37462501c97b}

'Enable Remote Desktop - Runs on all Clients
MandatoryApplications003={0d31d38d-8d6b-4138-9fa2-81cc9be98c41}

 

[UserApps]


'Microsoft Office 2010 - Runs on windows 7 clients only (x86/x64)
MandatoryApplications001={6508d615-7f60-43c9-be0b-6363612158e6}

'Microsoft Office 2013 - Runs on windows 8 clients only (x86/x64)
MandatoryApplications002={d2d49bc4-9309-41b0-b035-7b8ea310e0e1}

'Microsoft Live Essentials 2011 - Runs on windows 7 clients only (x86/x64)
MandatoryApplications003={31b1f626-77af-4b84-bdb8-daee3fb4dc37}

'Microsoft Live Essentials 2012 - Runs on Windows 8 Clients only ( x86/x64)
MandatoryApplications004={372788b5-3221-43da-a669-629f58adf0e7}

'AV - Runs on Windows 7 Clients only
MandatoryApplications005={d3cc94e7-8ad5-4851-9061-d47a4eba7d88}

'SIMS - No G Drive - Runs on all Clients
MandatoryApplications006=#SIMS()#

[EndFix]

'Disable Remote Desktop - Runs on all clients
MandatoryApplications001={d4f1d3d1-85c9-4566-ac54-700ec17779cd}

'Start Windows Updates and Enable
MandatoryApplications002={c2048807-25c8-4d38-bef0-32476f690e2c}

'Stop ***** Auto Login
MandatoryApplications003={05d3d808-28be-4697-9419-5f777f06adf8}


'Toshiba R830 Laptops need to have this installed to enable certain button functions
[SATELLITE R830]
MandatoryApplications001={7a12a60c-62bd-4125-8530-3ef5b1b48b94}


[ByVMType]
'VirtualMachine subsection selection
Subsection=VM-%IsVM%


[VM-True]
'VMWare Tools - 64bit
MandatoryApplications001={3fcebf99-40d1-40c4-a263-7022384f5da8}

 If anyone could advise where I'm going wrong. This is the only trouble I've every ran into so far doing all of this.

Thanks

Joe

 



Viewing all articles
Browse latest Browse all 11297

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>