Get a recursive list of files which have been modified before a certain period of time

Recently I rolled out an updated to Update the styles inside Word for Normal.dot. The update only updated the styles and did not change the autotext etc. After the update we wanted to check on a terminal server who had not been updated.

Open powershell and run the follinwg command

Get-ChildItem E:\RoamingProfilePath -Recurse | Where-Object {$_.LastWriteTime -lt “2012-06-23 00:00:00” -and $_.Name -eq “filename.dot“} | Export-Csc “C:\file.csv”

The excel sheet can be pruned for users via their profile path using the excel function

=SUBSTITUTE(SUBSTITUTE(B3,”E:\RoamingProfilePath“,””,1),”\AppData\Roaming\Microsoft\Templates”,””,1)

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...