Recently i was working for a government project where the requirement is to track the documents which are modified today. Power shell came to our rescue.
The script is simple we will iterate through all the documents in a library and compare the last modified date with today's date. If last modified date is greater than today,s date then the document is modified today. This script is run daily end of the day using the scheduler, the captured data is written into a CSV file and saved to a local folder.
The list of sites can be fetched from a CSV file also. The captured data can also via an email using send-mail power shell command.
The script is simple we will iterate through all the documents in a library and compare the last modified date with today's date. If last modified date is greater than today,s date then the document is modified today. This script is run daily end of the day using the scheduler, the captured data is written into a CSV file and saved to a local folder.
![]() |
Power shell script |
The list of sites can be fetched from a CSV file also. The captured data can also via an email using send-mail power shell command.
Hope this is helpful to someone.
Comments
Post a Comment