{"id":1042,"date":"2013-06-27T07:50:39","date_gmt":"2013-06-27T07:50:39","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=1042"},"modified":"2013-06-27T07:50:39","modified_gmt":"2013-06-27T07:50:39","slug":"get-a-recursive-list-of-files-which-have-been-modified-before-a-certain-period-of-time","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/random\/get-a-recursive-list-of-files-which-have-been-modified-before-a-certain-period-of-time","title":{"rendered":"Get a recursive list of files which have been modified before a certain period of time"},"content":{"rendered":"\r\n<p>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.<\/p>\r\n<p>Open powershell and run the follinwg command<\/p>\r\n<p>Get-ChildItem <strong>E:\\RoamingProfilePath<\/strong> -Recurse | Where-Object {$_.LastWriteTime -lt &#8220;<strong>2012-06-23 00:00:00<\/strong>&#8221; -and $_.Name -eq\u00a0&#8220;<strong>filename.dot<\/strong>&#8220;} | Export-Csc &#8220;C:\\file.csv&#8221;<\/p>\r\n<p>The excel sheet can be pruned for users via their profile path using the excel function<\/p>\r\n<p>=SUBSTITUTE(SUBSTITUTE(B3,&#8221;<strong>E:\\RoamingProfilePath<\/strong>&#8220;,&#8221;&#8221;,1),&#8221;\\AppData\\Roaming\\Microsoft\\Templates&#8221;,&#8221;&#8221;,1)<\/p>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>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. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[575,562,574,576,573],"class_list":["post-1042","post","type-post","status-publish","format-standard","hentry","category-random","tag-before","tag-excel","tag-modified","tag-powershell","tag-recursive-list-of-files"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=1042"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1042\/revisions"}],"predecessor-version":[{"id":1043,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/1042\/revisions\/1043"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=1042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=1042"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=1042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}