13:09 06-02-2015
Never » Очистить кеш IE & Java
@echo off

taskkill /T /F /IM iexplore.exe
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255

javaws -uninstall
javaws -clearcache
del /f /s /q %userprofile%\AppData\LocalLow\Sun\Java\Deployment\cache
del /f /s /q %userprofile%\AppData\LocalLow\Sun\Java\Deployment\log
del /f /s /q %userprofile%\AppData\LocalLow\Sun\Java\Deployment\tmp
Группы: [ BAT ] [ Windows ]
11:09 16-11-2012
Never » Собрать файлы с машин в кучу
set beginpool=1
set endpool=255
set subnet=\\192.168.1.
set storepath=D:\Archive\

net use h: /delete
CLS
FOR /L %%I in (%beginpool%,1,%endpool%) do (
net use h: %subnet%%%I\d$ /user:srt\Administrator lokosrt
robocopy h: %storepath%%subnet%%%I archive.rar /mt:128 /xo /xx /r:5 /w:3
net use h: /delete
)
Группы: [ BAT ] [ Windows ]
09:26 05-10-2012
Never » Имя пользователя из AD в описание компа
for /f "skip=3 tokens=3,4,5" %%a in ('net users %username% /domain') do (
if "%%a" neq "" (
if "%%b" neq "" (
if "%%c" neq "" (
net config server /srvcomment:"%%a %%b %%c">nul
)
)
)
goto exitproc
)
:exitproc
Группы: [ BAT ] [ Windows ]
Закрыть