Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- echo Batch pour installer IE11 (x86/AMD64) - MB. Technology Inc 2015 -
- rem requête de l'IP
- @SET /P adresse=[Entrez l'adresse IP du poste]
- rem Vérification de l'architecture de l'OS distant
- rem this one might have your curiosity
- for /f "delims== tokens=2" %%a in ('wmic /node:%adresse% cpu get addresswidth /format:list^|find /i "addresswidth"') do (set arch=%%a)
- if %arch% == 64 (
- pushd \\WINDOWS\SHARE\
- "\utils\PsExec.exe" \\%adresse% taskkill /f -im iexplore.exe
- "\utils\PsExec.exe" \\%adresse% -u domain\sammacountname -p password -i -c "\updates\IE11-Windows6.1-x64-fr-fr.exe"
- goto end
- ) else (
- pushd \\WINDOWS\SHARE\
- "\utils\PsExec.exe" \\%adresse% taskkill /f -im iexplore.exe
- "\utils\PsExec.exe" \\%adresse% -u domain\sammacountname -p password -i -c "\updates\IE11-Windows6.1-x86-fr-fr.exe"
- goto end
- )
- :end
- popd
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement