Last Modified Script on a Network Directory

Welcome Forums General PowerShell Q&A Last Modified Script on a Network Directory

Viewing 1 reply thread
  • Author
    • #191818
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member


      We’re looking into solutions to easily manage ex employee user data. We want a PowerShell script to scan our user directory (\\server\userhomedirs), look for the last modified date (last time folder had changes), tell us if no changes have occurred in over a year, and email us that report if no changes occurred. We only care about the main directory and it doesn’t need to include sub folders. We would also like to include folder size in GBs if possible. Thoughts? Thanks!


    • #191938
      Topics: 13
      Replies: 1683
      Points: 2,849
      Helping Hand
      Rank: Community Hero

      Not sure crawling part of the directory structure would produce the results you want. If you has something as simple as this:

      • userhomedir
      • —ssampson
      • ——mystuff
      • ——–christmasideas.txt

      If the user was updating their Christmas ideas, only the file and the folder above would show changed. Most user directories can be many layers deep. You would have to gather the entire file\folder structure to have accuracy. If the user is no longer at the company, why would someone be actively working in that users’s folder? It could be moved to an Archive directory and deleted after a year.

Viewing 1 reply thread
  • The topic ‘Last Modified Script on a Network Directory’ is closed to new replies.