Jump to content

Recommended Posts

Posted

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

Posted
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?
Posted

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.

Posted

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)

  • Thanks 1
Posted

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

Posted

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

Posted
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
Posted
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?
Posted

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

Posted

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

Posted
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

Posted

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???

Posted
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

Posted

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

  • 1 year later...
Posted
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 \\

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...