Wednesday, March 20, 2013

Delete file older then X days

1. Copy file older than X day to destination folder
     > robocopy (Source) (Destination) /move /minage:x
        example: robocopy c:\temp c:\delete /move /minage:7
        copy file older than 7 days form c:\temp to c:\delete
2. Delete all file at c:\delete
    > del /q destination
       example: del /q c:/delete
       
regards, Asnan

Tuesday, March 19, 2013

Perintah2 Yang sering Digunakan DI EXchange shell

1. Get-Mailboxstatistic | Sort-Object TotalItemSize –Descending