+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 22
O/S Deployment Thread, MDT Run Batch File in Technical; I have a batch file that installs sophos, where abouts in mdt can I put this to enable it to ...
  1. #1

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14

    MDT Run Batch File

    I have a batch file that installs sophos, where abouts in mdt can I put this to enable it to run on first logon, or maybe before first logon??

    Thanks

  2. #2

    Join Date
    Jun 2009
    Location
    Birmingham
    Posts
    600
    Thank Post
    92
    Thanked 72 Times in 64 Posts
    Rep Power
    24
    I would put it before first login, after the machine has joined the domain.

    I presume you are only installing this on the image deployment, not capture?

    Rich

  3. #3
    TheScarfedOne's Avatar
    Join Date
    Apr 2007
    Location
    Plymouth, Devon
    Posts
    1,156
    Thank Post
    557
    Thanked 153 Times in 139 Posts
    Blog Entries
    78
    Rep Power
    80
    Yep - i would put this as the last task in the sequence after installing any software etc, followed by a reboot.

  4. #4
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    606
    Thank Post
    52
    Thanked 12 Times in 12 Posts
    Rep Power
    22
    Must admit that I'd be inclined to make it one of the first things that gets installed.

  5. #5

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    yeah its a script to install sophos, so i would be happy to put this anywhere after the computer joins domain, how do i go about doing that?

  6. #6
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    606
    Thank Post
    52
    Thanked 12 Times in 12 Posts
    Rep Power
    22
    In your task sequence got to State Restore and after the "Recover From Domain" line go to Add>>General>>Run Command Line and in the "Command Line" box put in your batch file.

    Think that is all you need.

  7. #7


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,575
    Thank Post
    228
    Thanked 852 Times in 731 Posts
    Rep Power
    294
    or you could just add it as an mdt application
    mdt_pack_1.jpg
    mdt_pack_2.jpg
    mdt_pack_3.jpg
    mdt_pack_4.jpg

    next next finish (or similar then from the install setup screens select it and it will install as soon as windows is done (and any pre software updates you may or may not have set to deploy are done)

  8. Thanks to sted from:

    mbrunt (18th July 2011)

  9. #8

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    sounds decent sted, just imaging a batch now, so once that's done ill add the application and image another batch and let you know.

    really appreciate all your help so far :-)

  10. #9
    eejit's Avatar
    Join Date
    Jun 2005
    Location
    Ireland
    Posts
    606
    Thank Post
    52
    Thanked 12 Times in 12 Posts
    Rep Power
    22
    It is important that you use sted's exact "Application Name" as it only responds to that.

  11. #10

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    yep i will do no worries

  12. #11

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    huge.png

    Look at the image size, i'm sure thats 20gig and yet when I check the size of the folder it shows at 9gig.tiny.png

    any ideas why?

    thanks

  13. #12

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,329
    Thank Post
    622
    Thanked 1,578 Times in 1,415 Posts
    Rep Power
    413

  14. #13


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,575
    Thank Post
    228
    Thanked 852 Times in 731 Posts
    Rep Power
    294
    because wims are compressed and if you have say 3 win7 installs in 1 folder it will lump them into one file and just save the differences which is why you dont just file copy wim files from wds as they are on their own useless

  15. #14

    Join Date
    Jul 2008
    Location
    Merseyside
    Posts
    295
    Thank Post
    16
    Thanked 10 Times in 10 Posts
    Rep Power
    14
    this batch file doesnt seem to work, so copied it to the images c drive, gonna see if that works. also, when the computer has imaged it asks for the time zone as part of the last section of setup, any idea how i can stop this?

  16. #15


    Join Date
    Mar 2009
    Location
    Leeds
    Posts
    6,575
    Thank Post
    228
    Thanked 852 Times in 731 Posts
    Rep Power
    294
    customsetting.ini in the mdt control folder

    TimeZoneName=GMT Standard Time
    i also now add

    KeyboardLocale=en-GB

    UserLocale=en-GB

    UILanguage=en-GB

    TimeZoneName=GMT Standard Time

    WSUSServer=http://server:8530

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Batch File to run a shortcut
    By tommccann in forum Scripts
    Replies: 6
    Last Post: 13th September 2010, 02:17 PM
  2. Block users running a batch file to run command.com?
    By reggiep in forum Windows Server 2008
    Replies: 3
    Last Post: 1st August 2009, 03:44 PM
  3. run a batch file on logon with a CC3 Network
    By new-2-this in forum How do you do....it?
    Replies: 5
    Last Post: 17th July 2008, 07:57 PM
  4. prezzie batch file to collect dps logs
    By russdev in forum ICT KS3 SATS Tests
    Replies: 4
    Last Post: 16th May 2006, 12:16 PM
  5. batch file help
    By beeswax in forum Scripts
    Replies: 9
    Last Post: 3rd March 2006, 07:48 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
  •