{"id":1506,"date":"2021-03-09T15:49:53","date_gmt":"2021-03-09T21:49:53","guid":{"rendered":"https:\/\/it.thelibrarie.com\/weblog\/?p=1506"},"modified":"2021-03-09T15:49:53","modified_gmt":"2021-03-09T21:49:53","slug":"date-last-opened-for-all-applications","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2021\/03\/date-last-opened-for-all-applications\/","title":{"rendered":"Date Last opened for all applications"},"content":{"rendered":"\n<p>Because several applications are paid separately (Visio is the example) from the rest of O365, and we were running low on licenses (and we also didn&#8217;t have a Software Audit tool installed), I had to find the quick and dirty (ie cheap and fast) way of finding out the information required.<\/p>\n\n\n\n<p>It was easy to pull who had a license associated with their account. Just log into the Admin Portal admin.microsoft.com, navigate under Billing > Licenses > click on the product.<\/p>\n\n\n\n<p>In my case it&#8217;s Visio Plan 2. Licenses 0 available, 32 assigned.<\/p>\n\n\n\n<p>Powershell to the rescue<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$name = $env:COMPUTERNAME\n$path = \"\\\\fileserver.domain.tld\\share\\subdir\\\" + $name + \"_lastusedApp.csv\"\nGet-ChildItem -Path ${env:ProgramFiles(x86)} -Filter \"*.exe\" -Recurse | Get-ItemProperty | select name,lastaccesstime | sort -Property lastaccesstime | Export-Csv -Path $path -Encoding ascii -NoTypeInformation<\/pre>\n\n\n\n<p>Just need to run that remotely on the system. You can psexec or I was trying to use the invoke-command but was coming up with lack of rights to run remote scripts and didn&#8217;t need to look any further.<\/p>\n\n\n\n<p>The .csv then shows a list of all installed applications and the last time they were opened. Unfortunately if someone never reboots their system (uptime over a year or so) and keeps the application(s) open that entire time, it&#8217;ll appear as though they haven&#8217;t &#8220;used&#8221; it in the last year. Just something to keep in mind.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because several applications are paid separately (Visio is the example) from the rest of O365, and we were running low on licenses (and we also didn&#8217;t have a Software Audit tool installed), I had to find the quick and dirty (ie cheap and fast) way of finding out the information required. It was easy to &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2021\/03\/date-last-opened-for-all-applications\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Date Last opened for all applications<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1506","post","type-post","status-publish","format-standard","hentry","category-microsoft"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1506"}],"version-history":[{"count":1,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1506\/revisions"}],"predecessor-version":[{"id":1507,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1506\/revisions\/1507"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}