{"id":102740,"date":"2019-07-30T07:00:00","date_gmt":"2019-07-30T14:00:00","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/oldnewthing\/?p=102740"},"modified":"2019-07-30T06:52:39","modified_gmt":"2019-07-30T13:52:39","slug":"20190730-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20190730-00\/?p=102740","title":{"rendered":"Why doesn&#8217;t the Programs and Features control panel show Last Used On information?"},"content":{"rendered":"<p>A customer observed that the <i>Last Used On<\/i> column in the <i>Programs and Features<\/i> control panel doesn&#8217;t appear by default, and if they turn it on, the column is simply blank. The customer wanted to confirm this behavior and asked if there was a way to obtain the <i>Last Used On<\/i> information by some other means.<\/p>\n<p>I thought it was odd that the customer asked us to confirm what they were seeing. &#8220;When I hold my arms above my head, my shoulder hurts. Can you confirm that?&#8221; Um, it&#8217;s your shoulder. We can&#8217;t tell you how your shoulder feels.<\/p>\n<p>I&#8217;m guessing that what they wanted was not a confirmation that their eyes were not deceiving them, but rather a confirmation that the behavior is intentional.<\/p>\n<p>And yes, it is intentional.<\/p>\n<p>The <i>Last Used On<\/i> information was always a guess, and a really dodgy one at that. As we noted earlier, if the application itself does not provide the information, <a href=\"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/20040709-00\/?p=38493\"> the <i>Programs and Features<\/i> control panel runs some really coarse heuristics to find the program<\/a>, consisting mostly of matching words in the program name in the <i>Programs and Features<\/i> control panel against the words in the program name in the Start menu.<\/p>\n<p>There is no way to provide <i>Last Used On<\/i> information in the application registration (which makes sense since that is a dynamic concept not know at registration time), so for the <i>Last Used On<\/i> property, the system is always guessing.<\/p>\n<p>The heuristic is bad, and it eventually was recognized as so laughably bad that it simply wasn&#8217;t worth trying.<\/p>\n<p>The column still exists in case there are programs which programmatically extract data from the <i>Programs and Features<\/i> control panel. They will still have a column to manipulate, but the column never contains any useful information.<\/p>\n<p>The customer insisted upon an alternative mechanism that gave them the <i>Last Used On<\/i> information. I got the impression that they use this information to decide which programs their employees are using.<\/p>\n<p>I guess if you want to know for real when a program is run, you can turn on <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/security\/threat-protection\/windows-defender-application-control\/applocker\/configure-an-applocker-policy-for-audit-only\"> AppLocker auditing<\/a>. But the <i>Programs and Features<\/i> control panel doesn&#8217;t try any more.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The system doesn&#8217;t try to figure it out any more, because it was always a guess, and often a really bad one.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[104],"class_list":["post-102740","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-tipssupport"],"acf":[],"blog_post_summary":"<p>The system doesn&#8217;t try to figure it out any more, because it was always a guess, and often a really bad one.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/102740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=102740"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/102740\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=102740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=102740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=102740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}