You are on page 1of 1

@echo off

setlocal
setlocal EnableDelayedExpansion

set AGE7DAYS=10080
set AGE15DAYS=21600
set AGE30DAYS=43200
set PURGETARGET=%AGE15DAYS%

for /f "delims=" %%g in ('adrci exec^=""show homes"" ^| findstr /V "ADR Homes:"')


do (
(
echo set home %%g
echo purge -age %PURGETARGET%
echo exit)| adrci)
:end
exit /b

You might also like