Author Posts

January 24, 2017 at 10:00 am

Good morning.

I need a script where today I have a server 2012 that works as a file server, on this server I have a Public folder, where I need to move everything as folders with modification greater than 60 days to a certain mass on an external server that also this server.

can you help me?

Grateful

January 24, 2017 at 2:11 pm

Get-ChildItem \\source\folder\ -Recurse | 
Where-Object {$_.LastWriteTime -gt (Get-Date).AddDays(-60)} |
Move-Item -Destination \\destination\folder\