mbrunt Posted July 18, 2011 Posted July 18, 2011 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
Tricky_Dicky Posted July 18, 2011 Posted July 18, 2011 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
TheScarfedOne Posted July 18, 2011 Posted July 18, 2011 Yep - i would put this as the last task in the sequence after installing any software etc, followed by a reboot.
eejit Posted July 18, 2011 Posted July 18, 2011 Must admit that I'd be inclined to make it one of the first things that gets installed.
mbrunt Posted July 18, 2011 Author Posted July 18, 2011 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?
eejit Posted July 18, 2011 Posted July 18, 2011 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.
sted Posted July 18, 2011 Posted July 18, 2011 or you could just add it as an mdt application 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) 1
mbrunt Posted July 18, 2011 Author Posted July 18, 2011 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 :-)
eejit Posted July 18, 2011 Posted July 18, 2011 It is important that you use sted's exact "Application Name" as it only responds to that.
mbrunt Posted July 18, 2011 Author Posted July 18, 2011 Look at the image size, i'm sure thats 20gig and yet when I check the size of the folder it shows at 9gig. any ideas why? thanks
plexer Posted July 18, 2011 Posted July 18, 2011 I guess it's doing this: TechNet Magazine Article - Microsoft Deployment Toolkit - Using MDT and Single-Instance Storage - January 2010 Ben
sted Posted July 18, 2011 Posted July 18, 2011 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
mbrunt Posted July 19, 2011 Author Posted July 19, 2011 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?
sted Posted July 19, 2011 Posted July 19, 2011 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
mbrunt Posted July 19, 2011 Author Posted July 19, 2011 do you add timezonename twice? or was that a typo?? also you say edit it from the control folder, is this the same as doing it in the gui, right click on the share go to properties etc, that's how ive done it in the past, think i just have the time zone name incorrect. also how comes you put the wsus server part in, isnt that better to be done via group policy? cheers
sted Posted July 19, 2011 Posted July 19, 2011 do you add timezonename twice? or was that a typo?? also you say edit it from the control folder, is this the same as doing it in the gui, right click on the share go to properties etc, that's how ive done it in the past, think i just have the time zone name incorrect. also how comes you put the wsus server part in, isnt that better to be done via group policy? cheers its in twice as that was the specific setting i then just copy n pasted the rest of that part it dosent need to be in twice wsus depends what you are doing you can either get it to update pre and or post application deployment in mdt or when its domained its personal preference id rather have it patched before anyone uses it so i do it there (i also tend to use mdt for xp so i do 1 pc then sysprep and pull a wds image as its quicker to deploy imo) sophos this is the batch file i use @echo OFF REM --- Check for an existing installation of Sophos Anti-Virus if exist "c:\sophos4.txt" goto _End REM --- Deploy to Windows 2000/XP/2003 \\server1\SophosUpdate\CIDs\S000\SAVSCFXP\Setup.exe -updp "\\server1\SophosUpdate\CIDs\S000\SAVSCFXP" -user "emlibuser1" -pwd "sophos" -mng yes copy "\\server1\netlogon\sophos4.bat" "c:\sophos4.txt" REM --- End of the script :_End
mbrunt Posted July 19, 2011 Author Posted July 19, 2011 i see, my script is very similar... @echo Installing Sophos Antivirus \\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP\setup.exe -updp "\\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP" -user "carmel.local\sophos" -pwd "ccsophos" -mng yes This scripts work perfectly when I run it from my computer, its just not working when run from MDT. I'm wondering if its a permissions thing, because at the end of the deployment the computer auto logs on as local administrator (thats right isnt it??) and of course local admin wont have permission to the ccsophos01 server???
sted Posted July 19, 2011 Posted July 19, 2011 i see, my script is very similar... @echo Installing Sophos Antivirus \\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP\setup.exe -updp "\\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP" -user "carmel.local\sophos" -pwd "ccsophos" -mng yes This scripts work perfectly when I run it from my computer, its just not working when run from MDT. I'm wondering if its a permissions thing, because at the end of the deployment the computer auto logs on as local administrator (thats right isnt it??) and of course local admin wont have permission to the ccsophos01 server??? ive honestly not tried sophos with mdt i just have that as a startup script on all domain pcs so they should get sophos if its a domain member. Its possible that it is a quirk of already having mapped drives honestly dont know
mbrunt Posted July 19, 2011 Author Posted July 19, 2011 yeah ill just set it as a script too, just as easy.
mbrunt Posted July 20, 2011 Author Posted July 20, 2011 Just an update to let you know where I'm up to... In the state restore section of my task sequence I have a custom task called "Run Command Line" all this does is launch a script called c:\endscript.bat which lives on the local c drive of the image. The script contains the following... winsat.exe dwmformal powercfg -h off net use s: \\ccsophos01.domain\sophosupdate /User:domain\sophos sophos s: cd CIDs\S000\SAVSCFXP setup.exe -updp "\\ccsophos01\SophosUpdate\CIDs\S000\SAVSCFXP" -user "domain\sophos" -pwd "sophos" -mng yes net use s: /delete /y del %0 which basically does a few things, firstly checks to see if aero capable graphics exists, if so, enables aero. then switches off hibernate then maps a network drive to my sophos share using a username and password navigates to the network drive changes directory to the sophos folder runs the sophos exe with some switches for an unattended setup deletes the network drive. and then deletes itself. many thanks for all your help, im more or less sorted, got a few other issues that i've opened in new posts but mainly everything is good
jaythetech Posted July 27, 2012 Posted July 27, 2012 or you could just add it as an mdt application [ATTACH=CONFIG]10820[/ATTACH]Sted, Running the batch file [ATTACH=CONFIG]10821[/ATTACH] [ATTACH=CONFIG]10822[/ATTACH] [ATTACH=CONFIG]10823[/ATTACH] 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) Sted if I want to setup a batch file to run during MDT deployment which is a part of our FlashPlayer modified install looking at your Command-Line argument for running it \\
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now