{"id":8291,"date":"2007-03-08T09:15:24","date_gmt":"2007-03-08T09:15:24","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2007\/03\/08\/detecting-conflicts-between-aliases-functions-and-cmdlets\/"},"modified":"2019-02-18T13:16:48","modified_gmt":"2019-02-18T20:16:48","slug":"detecting-conflicts-between-aliases-functions-and-cmdlets","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/detecting-conflicts-between-aliases-functions-and-cmdlets\/","title":{"rendered":"Detecting Conflicts between Aliases, Functions, and Cmdlets"},"content":{"rendered":"<p>Version 1.1 of the <a href=\"http:\/\/www.codeplex.com\/PowerShellCX\">PowerShell Community Extensions<\/a> has just been release so I decided to kick the tires.  After I installed it, I noticed that some conflicts and then realized that there might be conflicts between my customizations and the Aliases, Functions and Cmdlets that they delivered.  Here is how I detected what needed to be resolved:\n<\/p>\n<p style=\"margin-left: 36pt\"><span style=\"color:#1f497d;font-family:Courier New\">PS&gt;<strong> gcm -type cmdlet,function,alias |group name |where {$_.count -gt 1}<br \/><\/strong><br \/>Count Name                      Group<br \/>&#8212;&#8211; &#8212;-                      &#8212;&#8211;<br \/>    2 Get-FileVersionInfo       {Get-FileVersionInfo, Get-FileVersionInfo}<br \/>    2 help                      {help, help}<br \/>    2 man                       {man, man}<br \/>    2 mkdir                     {mkdir, mkdir}<br \/>    2 ql                        {ql, ql}<br \/>    2 qs                        {qs, qs}<br \/>PS&gt; <strong>gcm qs<br \/><\/strong><br \/>CommandType     Name                          Definition<br \/>&#8212;&#8212;&#8212;&#8211;     &#8212;-                          &#8212;&#8212;&#8212;-<br \/>Function        qs                            &#8220;$args&#8221;<br \/>Alias           qs                            Quote-String\n<\/span><\/p>\n<p><span style=\"font-family:Courier New\"><br \/><\/span>Is that cool or what?   Man I love PowerShell!\n<\/p>\n<p>Enjoy.\n<\/p>\n<p>Jeffrey Snover [MSFT]<br \/>Windows PowerShell\/MMC Architect<br \/>Visit the Windows PowerShell Team blog at:    <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a><br \/>Visit the Windows PowerShell ScriptCenter at:  <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a>\n\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Version 1.1 of the PowerShell Community Extensions has just been release so I decided to kick the tires. After I installed it, I noticed that some conflicts and then realized that there might be conflicts between my customizations and the Aliases, Functions and Cmdlets that they delivered. Here is how I detected what needed to [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8291","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Version 1.1 of the PowerShell Community Extensions has just been release so I decided to kick the tires. After I installed it, I noticed that some conflicts and then realized that there might be conflicts between my customizations and the Aliases, Functions and Cmdlets that they delivered. Here is how I detected what needed to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/8291","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=8291"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/8291\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=8291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=8291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=8291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}