Dificult in Create Script

Welcome Forums General PowerShell Q&A Dificult in Create Script

This topic contains 1 reply, has 2 voices, and was last updated by

2 years, 2 months ago.

  • Author
  • #62527

    Points: 0
    Rank: Member

    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?


  • #62554

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

The topic ‘Dificult in Create Script’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort