+ Post New Thread
Results 1 to 3 of 3
O/S Deployment Thread, Running cmd to install software - Where? in Technical; Morning all, In MDT where do you recommend I put a CommandLine task in my task sequence? At the moment ...
  1. #1

    garethedmondson's Avatar
    Join Date
    Oct 2008
    Location
    Gowerton, Swansea
    Posts
    2,270
    Thank Post
    965
    Thanked 324 Times in 192 Posts
    Blog Entries
    11
    Rep Power
    165

    Running cmd to install software - Where?

    Morning all,

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

    net use s: <sims server> /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 "\\10.180.8.4\d$\YGG_Production\cmd\connectx86.ini" "c:\Program Files\SIMS\SIMS .net\connect.ini" /y
    copy "\\10.180.8.4\d$\YGG_Production\cmd\simsx86.ini" "c:\windows\sims.ini" /y
    goto _end

    :_x64

    copy "\\10.180.8.4\d$\YGG_Production\cmd\connectx64.ini" "c:\Program Files (x86)\SIMS\SIMS .net\connect.ini" /y
    copy "\\10.180.8.4\d$\YGG_Production\cmd\simsx64.ini" "c:\windows\sims.ini" /y
    goto _end

    :_end
    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

  2. #2


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,707
    Thank Post
    229
    Thanked 870 Times in 747 Posts
    Rep Power
    298
    i add them as software packages without source files

  3. #3

    Join Date
    Apr 2011
    Posts
    8
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    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: <sims server> /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

SHARE:
+ Post New Thread

Similar Threads

  1. GPOs to install software
    By enjay in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 21st May 2012, 05:21 PM
  2. Replies: 0
    Last Post: 4th July 2011, 04:58 PM
  3. Replies: 4
    Last Post: 22nd July 2010, 12:54 PM
  4. Using Group Policy to allow a user to install software
    By kaphc in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 16th December 2009, 08:37 PM
  5. Minimum right to install software
    By Jobos in forum Windows
    Replies: 5
    Last Post: 3rd October 2008, 06:21 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •