Jump to content

Recommended Posts

Posted

Morning all,

 

In MDT where do you recommend I put a CommandLine task in my task sequence? At the moment I have a script

 

 

It runs and installs SIMS but the copy procedures at the end do not work. So part one works, part two does not. So SIMS installs, but the .ini files do not come over.

 

I've enclosed a picture of my task sequence where you can see the 'Run Command Line' which takes place after 'Install Applications'. I have the command line and all the files on the MDT server - maybe they are in the wrong place?

 

Can anyone advise?

 

Garethwds.jpg

Posted

I don't know anything about MDT but in batch files /command line UNC paths ie \\servername\file can be problematic.

 

Try copying the ini files onto your S: drive somewhere and then chaning the task so that is points to their location on the S: drive.

 

eg. from your example above:

 

net use s: /user:xxxxxxxx xxxxxxx /persistent:yes

"s:\sims\Setups\SIMSApplicationSetup.exe" /S

"s:\sims\Setups\SIMSManualSetup.exe" /S

"s:\sims\Setups\SIMSAMPARKSetup.exe" /S

 

if exist "c:\Program Files (x86)" goto _x64

 

:_x86

copy "S:\iniFileLocation\connectx86.ini" "c:\Program Files\SIMS\SIMS .net\connect.ini" /y

copy "S:\iniFileLocation\simsx86.ini" "c:\windows\sims.ini" /y

goto _end

 

:_x64

 

copy "S:\iniFileLocation\connectx64.ini" "c:\Program Files (x86)\SIMS\SIMS .net\connect.ini" /y

copy "S:\iniFileLocation\simsx64.ini" "c:\windows\sims.ini" /y

goto _end

 

:_end

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...