Jump to content

Recommended Posts

Posted

Hello,

 

need some help! im looking roll .net framework 4 out via batch

 

simple one liner \\SERVER\delivery$\2011\dotNetFx40.exe /q /norestart

 

that bit is nice and easy.

 

what i need help with is, im pushing this out to everyone and i would like to know what PCs have been done and what ones i might need to visit.

 

a notepad file with a list of hostnames for the ones that are done would be bril

 

Thanks in advanced

Posted

Depends how you want to do it, It's easy enough to make it add a line to a file, however you'll run into problems with a few hundreds pcs trying to write to a file at once. Overwriting eachother etc.

 

Unless you don't mind doing it a bit of a longer route, and having it say make a file of the computer name, then run a seperate process/script to merge the files into one?

 

Steve

  • Thanks 1
Posted
Depends how you want to do it, It's easy enough to make it add a line to a file, however you'll run into problems with a few hundreds pcs trying to write to a file at once. Overwriting eachother etc.

 

Unless you don't mind doing it a bit of a longer route, and having it say make a file of the computer name, then run a seperate process/script to merge the files into one?

 

Steve

 

that sounds good to me, would u mind putting the script together for me? :getmecoat:

 

even if i had to have a folder full of txt files named using the hostname, if that makes sense?

Posted

Ah..

 

just found this.

setlocal

 

REM *********************************************************************

REM Environment customization begins here. Modify variables below.

REM *********************************************************************

 

REM Get ProductName from the Office product's core Setup.xml file, and then add "office14." as a prefix.

set ProductName=Office14.PROPLUS

 

REM Set DeployServer to a network-accessible location containing the Office source files.

set DeployServer=\\FS\Office2010SourceFiles

 

REM Set ConfigFile to the configuration file to be used for deployment (required)

set ConfigFile=\\FS\Office2010SourceFiles\ProPlus.WW\config.xml

 

REM Set LogLocation to a central directory to collect log files.

set LogLocation=\\FS\Office2010LogFiles

 

REM *********************************************************************

REM Deployment code begins here. Do not modify anything below this line.

REM *********************************************************************

 

IF NOT "%ProgramFiles(x86)%"=="" (goto ARP64) else (goto ARP86)

 

REM Operating system is X64. Check for 32 bit Office in emulated Wow6432 uninstall key

:ARP64

reg query HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432NODE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%

if NOT %errorlevel%==1 (goto End)

 

REM Check for 32 and 64 bit versions of Office 2010 in regular uninstall key.(Office 64bit would also appear here on a 64bit OS)

:ARP86

reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\%ProductName%

if %errorlevel%==1 (goto DeployOffice) else (goto End)

 

REM If 1 returned, the product was not found. Run setup here.

:DeployOffice

start /wait %DeployServer%\setup.exe /config %ConfigFile%

echo %date% %time% Setup ended with error code %errorlevel%. >> %LogLocation%\%computername%.txt

 

REM If 0 or other was returned, the product was found or another error occurred. Do nothing.

:End

 

Endlocal

 

by using that as a reference ill be able so what what i need

Posted (edited)

Something like this?

 

\\SERVER\delivery$\2011\dotNetFx40.exe /q /norestart

echo dotNetFx40.exe ran on %date% >\\SERVER\delivery$\2011\%computername%.txt

 

Then you could manually run:

 

dir /b \\SERVER\delivery$\2011\*.txt >>\\SERVER\delivery$\2011\allcomp.txt

 

to compile a single file with all the names in.

Edited by andy_b
See above hehe
  • Thanks 1
Posted

You planning the SIMS summer update too?

 

Adding on to andy_b, I think this should work, checking if done already.

 

IF EXIST \\SERVER\delivery$\2011\%computername%.txt GOTO dot4_end ELSE GOTO install_dot4
:install_dot4
\\SERVER\delivery$\2011\dotNetFx40.exe /q /norestart
echo dotNetFx40.exe ran on %date% >\\SERVER\delivery$\2011\%computername%.txt
:dot4_end

  • Thanks 1

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



  • 46 When would you like EduGeek EDIT 2025 to be held?

    1. 1. Select a time period you can attend


      • I can make it in June\July
      • I can make it in August\Sept
      • Other time period. Comment below
      • Either time

×
×
  • Create New...