{"id":81,"date":"2007-02-26T14:36:55","date_gmt":"2007-02-26T22:36:55","guid":{"rendered":"http:\/\/testblog.sapien.com\/index.php\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/"},"modified":"2007-02-26T14:36:55","modified_gmt":"2007-02-26T22:36:55","slug":"fast-furious-powershell-unmask-the-alias","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/","title":{"rendered":"Fast &#038; Furious PowerShell: Unmask the alias"},"content":{"rendered":"<p>I&#8217;ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don&#8217;t always remember what I&#8217;ve defined, or even what the alias sometimes stands for. But with a few fast &amp; furious PowerShell expressions, I can strip away the mystery.<\/p>\n<p>Aliases are managed by the Alias provider. In PowerShell, that means I can use Get-ChildItem (or the DIR alias) and explore the alias provider just like a file system. Try this and you&#8217;ll see all the aliases on your system:<\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">dir alias: | format-table -auto<\/font><\/p>\n<p>I like to pipe output to format-table so I can see more of the definition.<\/p>\n<p>Want to see more detail about a specific alias?<\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">PS E:\\ &gt; dir-alias wd |format-list<\/font><\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">Name : wd<br \/>CommandType : Alias<br \/>Definition : E:\\Program Files\\Microsoft Office\\Office12\\winword.exe<br \/>ReferencedCommand : winword.exe<br \/>ResolvedCommand : winword.exe<\/font><\/p>\n<p>This is my shortcut to start Microsoft Word. The data is essentially the same thing you get by using Get-Alias.<\/p>\n<p>But what about an alias for a custom function? Works the same. I&#8217;ll use Get-Alias because it makes more sense:<\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">PS E:\\ &gt; get-alias du | format-table -auto <\/font><\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">CommandType Name Definition<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;<br \/>Alias&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; du&nbsp;&nbsp; Get-DiskUsage<\/font> <\/p>\n<p>But what is Get-DiskUsage? Easy enough to find.&nbsp; I need to check the ResolvedCommand property: <\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">PS E:\\ &gt; (get-alias du).ResolvedCommand | format-table -auto <\/font> <\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">CommandType Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Definition<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;- &#8212;&#8212;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;<br \/>Function&nbsp;&nbsp;&nbsp; Get-DiskUsage param( [string]$computer = &#8220;.&#8221; , [switch]$all)&nbsp;&#8230;<\/font> <\/p>\n<p>If I want to see the entire definition:<\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">PS E:\\ &gt; ((get-alias du).ResolvedCommand).Definition<br \/>param( [string]$computer = &#8220;.&#8221; , [switch]$all) $size = @{ l = &#8220;Size (MB)&#8221; e = { $_.size\/1mb}; f = &#8220;{0:N}&#8221;}<br \/>$free = @{ l = &#8220;free (MB)&#8221; e = { $_.freespace\/1mb}; f = &#8220;{0:N}&#8221;}<br \/>$perc = @{ l = &#8220;percent&#8221; e = { 100.0 * ([double]$_.freespace\/[double]$_.size)}; f=&#8221;{0:f}&#8221; }<br \/>$name = @{ e = &#8220;name&#8221; f = &#8220;{0,-20}&#8221; }<br \/>$fields = $name,$size,$free,$perc <\/font><\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\"># in case the user wants to see more than just local drives<br \/>$filter = &#8220;DriveType = &#8216;3&#8217;&#8221;<br \/>if ( $all ) { $filter = &#8220;&#8221; } <\/font> <\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\"># go do the work by getting the information from the appropriate<br \/># computer, and send it to format-table with the appropriate<br \/># fields and formatting info<br \/>get-wmiobject -class win32_logicaldisk -filter $filter -comp $computer |<br \/>format-table $fields -auto<\/font> <\/p>\n<p>The formatting may not be exactly right from copying and pasting but you get the idea. So, to wrap up, use this: <\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">dir alias: | select name,definition | format-table -auto<\/font> <\/p>\n<p>To get&nbsp;fast look at all your aliases. Finally, try this: <\/p>\n<p><font size=\"2\" face=\"Lucida Console\" color=\"#0000ff\" style=\"color: rgb(0, 0, 255);\">PS E:\\ &gt; foreach ($item in (dir alias:)) {write-host -back yellow -fore blue $item.name ; ((get-alias $item.name).ResolvedCommand).Definition}<\/font> <\/p>\n<p>By the way, instead of using MORE, you can click your mouse in the PowerShell console window and that should pause scrolling. Tap the space bar to resume. Send this output to a text file and you have a nice alias backup. <\/p>\n<\/p>\n<div style=\"margin: 0px; padding: 0px; display: inline;\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:a7fd64c4-3c8a-472b-97fd-fbb1f7d97cc2\" class=\"wlWriterSmartContent\">del.icio.us tags: <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/PowerShell\">PowerShell<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/alias\">alias<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/Scripting\">Scripting<\/a>, <a rel=\"tag\" href=\"http:\/\/del.icio.us\/popular\/Get-ChildItem\">Get-ChildItem<\/a><\/div>\n<p>&nbsp;<\/p>\n<div style=\"margin: 0px; padding: 0px; display: inline;\" id=\"0767317B-992E-4b12-91E0-4F059A8CECA8:7cf531e8-a25f-486e-af46-357046bbae32\" class=\"wlWriterSmartContent\">Technorati tags: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/PowerShell\">PowerShell<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/alias\">alias<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/scripting\">scripting<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/Get-ChildItem\">Get-ChildItem<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don&#8217;t always remember what I&#8217;ve defined, or even what the alias sometimes stands for. But with a few fast &#038; furious PowerShell expressions, I can strip away the mystery.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[25],"tags":[],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-windows-powershell"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast &amp; furious PowerShell expressions, I can strip away the mystery.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jeffery Hicks\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DEV SAPIEN Blog - Tools for IT Success\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Fast &amp; Furious PowerShell: Unmask the alias - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast &amp; furious PowerShell expressions, I can strip away the mystery.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2007-02-26T22:36:55+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2007-02-26T22:36:55+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Fast &amp; Furious PowerShell: Unmask the alias - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast &amp; furious PowerShell expressions, I can strip away the mystery.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#blogposting\",\"name\":\"Fast & Furious PowerShell: Unmask the alias - DEV SAPIEN Blog\",\"headline\":\"Fast &#038; Furious PowerShell: Unmask the alias\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"datePublished\":\"2007-02-26T14:36:55-08:00\",\"dateModified\":\"2007-02-26T14:36:55-08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#webpage\"},\"articleSection\":\"Windows PowerShell\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/windows-powershell\\\/#listItem\",\"name\":\"Windows PowerShell\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/windows-powershell\\\/#listItem\",\"position\":2,\"name\":\"Windows PowerShell\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/windows-powershell\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#listItem\",\"name\":\"Fast &#038; Furious PowerShell: Unmask the alias\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#listItem\",\"position\":3,\"name\":\"Fast &#038; Furious PowerShell: Unmask the alias\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/windows-powershell\\\/#listItem\",\"name\":\"Windows PowerShell\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/\",\"name\":\"Jeffery Hicks\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/\",\"name\":\"Fast & Furious PowerShell: Unmask the alias - DEV SAPIEN Blog\",\"description\":\"I\\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\\u2019t always remember what I\\u2019ve defined, or even what the alias sometimes stands for. But with a few fast & furious PowerShell expressions, I can strip away the mystery.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2007\\\/02\\\/26\\\/fast-furious-powershell-unmask-the-alias\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"datePublished\":\"2007-02-26T14:36:55-08:00\",\"dateModified\":\"2007-02-26T14:36:55-08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Fast & Furious PowerShell: Unmask the alias - DEV SAPIEN Blog","description":"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast & furious PowerShell expressions, I can strip away the mystery.","canonical_url":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#blogposting","name":"Fast & Furious PowerShell: Unmask the alias - DEV SAPIEN Blog","headline":"Fast &#038; Furious PowerShell: Unmask the alias","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"datePublished":"2007-02-26T14:36:55-08:00","dateModified":"2007-02-26T14:36:55-08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#webpage"},"articleSection":"Windows PowerShell"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dev.sapien.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/windows-powershell\/#listItem","name":"Windows PowerShell"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/windows-powershell\/#listItem","position":2,"name":"Windows PowerShell","item":"https:\/\/dev.sapien.com\/blog\/topics\/windows-powershell\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#listItem","name":"Fast &#038; Furious PowerShell: Unmask the alias"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#listItem","position":3,"name":"Fast &#038; Furious PowerShell: Unmask the alias","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/windows-powershell\/#listItem","name":"Windows PowerShell"}}]},{"@type":"Organization","@id":"https:\/\/dev.sapien.com\/blog\/#organization","name":"DEV SAPIEN Blog","description":"Tools for IT Success","url":"https:\/\/dev.sapien.com\/blog\/"},{"@type":"Person","@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/","name":"Jeffery Hicks"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/","name":"Fast & Furious PowerShell: Unmask the alias - DEV SAPIEN Blog","description":"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast & furious PowerShell expressions, I can strip away the mystery.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"datePublished":"2007-02-26T14:36:55-08:00","dateModified":"2007-02-26T14:36:55-08:00"},{"@type":"WebSite","@id":"https:\/\/dev.sapien.com\/blog\/#website","url":"https:\/\/dev.sapien.com\/blog\/","name":"DEV SAPIEN Blog","description":"Tools for IT Success","inLanguage":"en-US","publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DEV SAPIEN Blog - Tools for IT Success","og:type":"article","og:title":"Fast &amp; Furious PowerShell: Unmask the alias - DEV SAPIEN Blog","og:description":"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast &amp; furious PowerShell expressions, I can strip away the mystery.","og:url":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/","article:published_time":"2007-02-26T22:36:55+00:00","article:modified_time":"2007-02-26T22:36:55+00:00","twitter:card":"summary_large_image","twitter:title":"Fast &amp; Furious PowerShell: Unmask the alias - DEV SAPIEN Blog","twitter:description":"I\u2019ve started using a lot of aliases in my PowerShell work. Many of them defined in my PowerShell profile. Unfortunately, I don\u2019t always remember what I\u2019ve defined, or even what the alias sometimes stands for. But with a few fast &amp; furious PowerShell expressions, I can strip away the mystery."},"aioseo_meta_data":{"post_id":"81","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-28 14:17:33","updated":"2026-08-28 14:17:33"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/windows-powershell\/\" title=\"Windows PowerShell\">Windows PowerShell<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tFast &amp; Furious PowerShell: Unmask the alias\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"Windows PowerShell","link":"https:\/\/dev.sapien.com\/blog\/topics\/windows-powershell\/"},{"label":"Fast &#038; Furious PowerShell: Unmask the alias","link":"https:\/\/dev.sapien.com\/blog\/2007\/02\/26\/fast-furious-powershell-unmask-the-alias\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=81"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}