Hi all,
Right so this awful application requires a new .dll to be copied to each machine, the old one (all of which are in different folders on the remote machines) needs to be unregistered and the new dll registered using regsvr32.... so I would like to create a script to automate this. So Im thinking something along the lines of
mkdir "\\computername\c$\Mayer\060611licenseupdate"
copy "\\viking\users\harmanp\MM 30 licenses\Pre 440.08\LicenceValidation.dll" "\\computername\c$\Mayer\060611licenseupdate\LicenceValidation.dll"
psexec \\computername -u computername\administrator regsvr32.exe /U /S LicenceValidation.dll
psexec \\computername -u computername\administrator regsvr32.exe /S c:\Mayer\060611licenseupdate\LicenceValidation.dll\LicenceValidation.dll
How can I get it to replace the 'computername' for a txt list with all the computer names?
Right so this awful application requires a new .dll to be copied to each machine, the old one (all of which are in different folders on the remote machines) needs to be unregistered and the new dll registered using regsvr32.... so I would like to create a script to automate this. So Im thinking something along the lines of
mkdir "\\computername\c$\Mayer\060611licenseupdate"
copy "\\viking\users\harmanp\MM 30 licenses\Pre 440.08\LicenceValidation.dll" "\\computername\c$\Mayer\060611licenseupdate\LicenceValidation.dll"
psexec \\computername -u computername\administrator regsvr32.exe /U /S LicenceValidation.dll
psexec \\computername -u computername\administrator regsvr32.exe /S c:\Mayer\060611licenseupdate\LicenceValidation.dll\LicenceValidation.dll
How can I get it to replace the 'computername' for a txt list with all the computer names?