Unable to run a batch file in windows 2008R2

hi,

I am able to run a batch file to one system but unable to run another , both are windows 2008R2.

both system as task completed what else i should check for the problematic server?

pls show me the command

this command working in one window 2008R2 and install Excel but not working on few windows 2008R2 system , but client logs says completed and but excel did not install

// Enter your action script here
download http://server:52311/stage/MSOffice/Excel2010.bfswd

// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}

delete __appendfile
appendfile if not exist c:\install mkdir c:\install
delete foldercreate.bat
copy __appendfile foldercreate.bat
dos foldercreate.bat

// All SWD files will go into a folder in the clients __BESData folder. This folder gets cleared on every restart.
parameter “baseFolder” = “__Download/”

//delete Excel2010 Folder if alrady exists
folder delete “c:\install\Excel2010”

extract “Excel2010.bfswd” “c:\install\Excel2010”

waithidden cmd.exe /C “start /min c:\install\Excel2010\Install.bat”

Pls Try This batch file

delete __appendfile
appendfile @echo OFF
appendfile C:
appendfile “C:\SAPGUI\PRES1\GUI\WINDOWS\WIN32\Setup\NwSapSetup.exe” /silent /all /nodlg /norestart

move __appendfile c:\install\Excel2010\Install.bat

wait “c:\install\Excel2010\Install.bat”

Thanks, can you please let me know what is this
appendfile “C:\SAPGUI\PRES1\GUI\WINDOWS\WIN32\Setup\NwSapSetup.exe” /silent /all /nodlg /norestart ??

this is sample we have created for SAP9.0 Installation

so do i need this line in my script or i should ignore this?

Retry error, attempt 8 failed for MoveFile (C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__appendfile, c:\install\Excel2010\Install.bat)
At 05:22:56 -0500 - actionsite (http://server:52311/cgi-bin/bfgather.exe/actionsite)
Command failed (Move of ‘C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__appendfile’ to ‘c:\install\Excel2010\Install.bat’ failed (0 - File error “class FileFoundError” on “c:\install\Excel2010\Install.bat”)) move __appendfile c:\install\Excel2010\Install.bat (action:277829)
At 05:22:56 -0500 -

`
// Enter your action script here
//download http://server:52311/stage/MSOffice/Excel2010.bfswd

// Disable wow64 redirection on x64 OSes
action uses wow64 redirection {not x64 of operating system}

delete __appendfile
appendfile if not exist c:\install mkdir c:\install
delete foldercreate.bat
copy __appendfile foldercreate.bat
dos foldercreate.bat

// All SWD files will go into a folder in the clients __BESData folder. This folder gets cleared on every restart.
parameter “baseFolder” = “__Download/”

//delete Excel2010 Folder if alrady exists
//folder delete “c:\install\Excel2010”

//extract “Excel2010.bfswd” “c:\install\Excel2010”

//waithidden cmd.exe /C “start /min c:\install\Excel2010\Install.bat”

delete __appendfile
appendfile @echo OFF
appendfile C:

move __appendfile c:\install\Excel2010\Install.bat

wait “c:\install\Excel2010\Install.bat”

`

send me all action script

Action script is there already and isntall.bat file is as follows:-

@ECHO OFF
start /wait \server1\system\wci\appsrc\Office2010\setup.exe /adminfile C:\install\Excel2010\Excel2010.MSP /config \server1\system\wci\appsrc\Office2010\Excel.WW\config.xml

try

delete __appendfile
appendfile @echo OFF
appendfile C:
appendfile "start /wait \server1\system\wci\appsrc\Office2010\setup.exe /adminfile C:\install\Excel2010\Excel2010.MSP /config \server1\system\wci\appsrc\Office2010\Excel.WW\config.xml

move __appendfile c:\install\Excel2010\Install.bat

wait “c:\install\Excel2010\Install.bat”

At 05:40:54 -0500 -
Retry error, attempt 8 failed for MoveFile (C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__appendfile, c:\install\Excel2010\Install.bat)
At 05:40:54 -0500 - actionsite (http://server:52311/cgi-bin/bfgather.exe/actionsite)
Command failed (Move of ‘C:\Program Files (x86)\BigFix Enterprise\BES Client__BESData\actionsite__appendfile’ to ‘c:\install\Excel2010\Install.bat’ failed (0 - File error “class FileFoundError” on “c:\install\Excel2010\Install.bat”)) move __appendfile “c:\install\Excel2010\Install.bat” (action:277831)
At 05:40:54 -0500 -

My apologies , I found the issue i was connecting a remote server which prompt me user ID and password due to different domain , so i added this sample command into install.bat and it worked with my original script.

net use z: \networkshare /USER:domain\username password /PERSISTENT:NO

Thanks for your help.

Sorry I wasn’t going to step in here, but…you probably need to do some more reading on BigFix and get an understanding of what’s happening here. And the first thing is to change the passwords on whatever username/password you had put into that fixlet/task.

The full content of all Fixlets, Tasks, and Actions are accessible to any client on your network, to anyone who knows how to look for it. Your password is compromised.

In general,

  1. Do not use BigFix to execute a Batch File that references another system on the network.
  2. Bundle up the entire Office install package, and download it to the client with a “prefetch” or “download” command. The Software Deployment Wizard should have done this for you?
  3. Don’t download the Batch File. Build it on the fly with an “appendfile” or “createfile” command. Makes it much easier to troubleshoot later.
  4. The “Retry error, attempt 8 failed for MoveFile”…occurs because the target file already exists. You have to delete it first, as in
    delete c:\install\Excel2010\Install.bat move __appendfile c:\install\Excel2010\Install.bat

Ok, thanks for your great suggestion Jason, i will keep this in mind.

Actually that office bundle is almost 4GB and if i download full then it would take much space on the clients , that is why i am calling install location which is on the remote location via batch file in bigfix.

If install package size is 4GB then how to overcome this situation?

Thanks

I just let the client download the install package from the BES server.

Ok thanks…

What Jason stated is the best way to do this for a few reasons

  1. 4GB of space on a client should not be an issue. The only thing you may need to do is increase some default cache sizes, which is something that I do all the time anyway.
  2. When you download with BigFix, you will be taking advantage of the download throttling. If you try to run the install from the remote server, there is no throttling.
  3. Local installs will complete way faster than remote. If find that even taking into account the time it takes to put the code on the local system, it is still faster.
  4. If you leave it local, then repairs can be done locally.

You can also pre-cache the files so that they are ready for a scheduled install at a later time.

Ok, thanks for your suggestion.