{"id":2131,"date":"2024-11-11T12:01:24","date_gmt":"2024-11-11T17:01:24","guid":{"rendered":"https:\/\/insidethe.com\/blog\/?p=2131"},"modified":"2024-11-11T12:01:25","modified_gmt":"2024-11-11T17:01:25","slug":"report-shortcut-properties","status":"publish","type":"post","link":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/","title":{"rendered":"Report Shortcut Properties"},"content":{"rendered":"\n<p>When working with a folder that contains several shortcuts, it can be tedious to check the properties of each shortcut. This PowerShell script loops over all of the shortcuts in the folder and reports the name of the executable, start in path, and command line arguments in table format.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$path = Read-Host \"Enter the path to search for shortcuts\"; Get-ChildItem $path -Filter *.lnk | Select-Object @{Name='Shortcut';Expression={$.Name}}, @{Name='Target';Expression={(New-Object -ComObject WScript.Shell).CreateShortcut($.FullName).TargetPath}}, @{Name='Arguments';Expression={(New-Object -ComObject WScript.Shell).CreateShortcut($.FullName).Arguments}}, @{Name='StartIn';Expression={(New-Object -ComObject WScript.Shell).CreateShortcut($.FullName).WorkingDirectory}} | Format-Table -AutoSize<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When working with a folder that contains several shortcuts, it can be tedious to check the properties of each shortcut. This PowerShell script loops over all of the shortcuts in the folder and reports the name of the executable, start in path, and command line arguments in table format.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[40],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Report Shortcut Properties - Insidethe.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Report Shortcut Properties - Insidethe.com\" \/>\n<meta property=\"og:description\" content=\"When working with a folder that contains several shortcuts, it can be tedious to check the properties of each shortcut. This PowerShell script loops over all of the shortcuts in the folder and reports the name of the executable, start in path, and command line arguments in table format.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/\" \/>\n<meta property=\"og:site_name\" content=\"Insidethe.com\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-11T17:01:24+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-11T17:01:25+00:00\" \/>\n<meta name=\"author\" content=\"Jared\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jared\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/\",\"url\":\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/\",\"name\":\"Report Shortcut Properties - Insidethe.com\",\"isPartOf\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#website\"},\"datePublished\":\"2024-11-11T17:01:24+00:00\",\"dateModified\":\"2024-11-11T17:01:25+00:00\",\"author\":{\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99\"},\"breadcrumb\":{\"@id\":\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/insidethe.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Report Shortcut Properties\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/insidethe.com\/blog\/#website\",\"url\":\"https:\/\/insidethe.com\/blog\/\",\"name\":\"Insidethe.com\",\"description\":\"It is my space, but better than myspace\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/insidethe.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99\",\"name\":\"Jared\",\"sameAs\":[\"https:\/\/www.insidethe.com\/blog\"],\"url\":\"https:\/\/insidethe.com\/blog\/author\/jared\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Report Shortcut Properties - Insidethe.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/","og_locale":"en_US","og_type":"article","og_title":"Report Shortcut Properties - Insidethe.com","og_description":"When working with a folder that contains several shortcuts, it can be tedious to check the properties of each shortcut. This PowerShell script loops over all of the shortcuts in the folder and reports the name of the executable, start in path, and command line arguments in table format.","og_url":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/","og_site_name":"Insidethe.com","article_published_time":"2024-11-11T17:01:24+00:00","article_modified_time":"2024-11-11T17:01:25+00:00","author":"Jared","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Jared","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/","url":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/","name":"Report Shortcut Properties - Insidethe.com","isPartOf":{"@id":"https:\/\/insidethe.com\/blog\/#website"},"datePublished":"2024-11-11T17:01:24+00:00","dateModified":"2024-11-11T17:01:25+00:00","author":{"@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99"},"breadcrumb":{"@id":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/insidethe.com\/blog\/2024\/11\/report-shortcut-properties\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/insidethe.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Report Shortcut Properties"}]},{"@type":"WebSite","@id":"https:\/\/insidethe.com\/blog\/#website","url":"https:\/\/insidethe.com\/blog\/","name":"Insidethe.com","description":"It is my space, but better than myspace","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/insidethe.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/insidethe.com\/blog\/#\/schema\/person\/046e8441af869a735c4e31ac51541a99","name":"Jared","sameAs":["https:\/\/www.insidethe.com\/blog"],"url":"https:\/\/insidethe.com\/blog\/author\/jared\/"}]}},"_links":{"self":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2131"}],"collection":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/comments?post=2131"}],"version-history":[{"count":1,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2131\/revisions"}],"predecessor-version":[{"id":2132,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/posts\/2131\/revisions\/2132"}],"wp:attachment":[{"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/media?parent=2131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/categories?post=2131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/insidethe.com\/blog\/wp-json\/wp\/v2\/tags?post=2131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}