{"id":12446,"date":"2016-07-13T06:00:00","date_gmt":"2016-07-13T13:00:00","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=12446"},"modified":"2016-07-13T08:24:24","modified_gmt":"2016-07-13T15:24:24","slug":"which-version-does-import-module-import","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/","title":{"rendered":"Which Version Does Import-Module Import?"},"content":{"rendered":"<p>Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1<\/p>\n<p>The <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=141553\">Import-Module<\/a> cmdlet, the <a href=\"https:\/\/technet.microsoft.com\/en-us\/library\/hh847765.aspx\">#Requires directive<\/a>, and <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkID=144311\">module auto-loading<\/a> (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It&#8217;s an important question when you are writing shared code that uses commands from other modules. And, the answer has become more complex with the advent of side-by-side versioning in PowerShell 5.0.<\/p>\n<p><a href=\"http:\/\/info.sapien.com\/index.php\/scripting\/scripting-modules\/which-version-does-import-module-import\" target=\"_blank\">Read the full post in the SAPIEN Information Center<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p><em>June Blender is a technology evangelist at SAPIEN Technologies, Inc. and a Windows PowerShell MVP. You can reach her at <\/em><a href=\"mailto:juneb@sapien.com\"><em>juneb@sapien.com <\/em><\/a><em>or follow her on Twitter at <\/em><a href=\"https:\/\/www.twitter.com\/juneb_get_help\"><em>@juneb_get_help<\/em><\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It&#8217;s an important question when you are writing shared code that uses commands from other modules. And, the answer has become [&hellip;]<\/p>\n","protected":false},"author":31,"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":[1143,941,1152],"tags":[1155,1154,1156,1153,551,1130,28,961,1132,1131],"class_list":["post-12446","post","type-post","status-publish","format-standard","hentry","category-powershell","category-powershell-5-0","category-versions","tag-requires","tag-import-module","tag-module-auto-loading","tag-module-qualified","tag-modules","tag-modulespecification","tag-powershell","tag-powershell-5-0","tag-versionchaos","tag-versioning"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It&#039;s an important question when you are writing shared code that uses commands from other modules. And, the answer has become\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"June Blender\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/\" \/>\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=\"Which Version Does Import-Module Import? - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It&#039;s an important question when you are writing shared code that uses commands from other modules. And, the answer has become\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-07-13T13:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2016-07-13T15:24:24+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Which Version Does Import-Module Import? - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It&#039;s an important question when you are writing shared code that uses commands from other modules. And, the answer has become\" \/>\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\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#blogposting\",\"name\":\"Which Version Does Import-Module Import? - DEV SAPIEN Blog\",\"headline\":\"Which Version Does Import-Module Import?\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"datePublished\":\"2016-07-13T06:00:00-07:00\",\"dateModified\":\"2016-07-13T08:24:24-07:00\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#webpage\"},\"articleSection\":\"PowerShell, PowerShell 5.0, Versions, #Requires, Import-Module, module auto-loading, module-qualified, modules, ModuleSpecification, powershell, powershell 5.0, VersionChaos, Versioning\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#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\\\/powershell-5-0\\\/#listItem\",\"name\":\"PowerShell 5.0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/powershell-5-0\\\/#listItem\",\"position\":2,\"name\":\"PowerShell 5.0\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/powershell-5-0\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#listItem\",\"name\":\"Which Version Does Import-Module Import?\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#listItem\",\"position\":3,\"name\":\"Which Version Does Import-Module Import?\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/powershell-5-0\\\/#listItem\",\"name\":\"PowerShell 5.0\"}}]},{\"@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\\\/juneblender\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/\",\"name\":\"June Blender\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/\",\"name\":\"Which Version Does Import-Module Import? - DEV SAPIEN Blog\",\"description\":\"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It's an important question when you are writing shared code that uses commands from other modules. And, the answer has become\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2016\\\/07\\\/13\\\/which-version-does-import-module-import\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/juneblender\\\/#author\"},\"datePublished\":\"2016-07-13T06:00:00-07:00\",\"dateModified\":\"2016-07-13T08:24:24-07: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":"Which Version Does Import-Module Import? - DEV SAPIEN Blog","description":"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It's an important question when you are writing shared code that uses commands from other modules. And, the answer has become","canonical_url":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#blogposting","name":"Which Version Does Import-Module Import? - DEV SAPIEN Blog","headline":"Which Version Does Import-Module Import?","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"datePublished":"2016-07-13T06:00:00-07:00","dateModified":"2016-07-13T08:24:24-07:00","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#webpage"},"articleSection":"PowerShell, PowerShell 5.0, Versions, #Requires, Import-Module, module auto-loading, module-qualified, modules, ModuleSpecification, powershell, powershell 5.0, VersionChaos, Versioning"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#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\/powershell-5-0\/#listItem","name":"PowerShell 5.0"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/powershell-5-0\/#listItem","position":2,"name":"PowerShell 5.0","item":"https:\/\/dev.sapien.com\/blog\/topics\/powershell-5-0\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#listItem","name":"Which Version Does Import-Module Import?"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#listItem","position":3,"name":"Which Version Does Import-Module Import?","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/powershell-5-0\/#listItem","name":"PowerShell 5.0"}}]},{"@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\/juneblender\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/","name":"June Blender"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/","name":"Which Version Does Import-Module Import? - DEV SAPIEN Blog","description":"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It's an important question when you are writing shared code that uses commands from other modules. And, the answer has become","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/juneblender\/#author"},"datePublished":"2016-07-13T06:00:00-07:00","dateModified":"2016-07-13T08:24:24-07: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":"Which Version Does Import-Module Import? - DEV SAPIEN Blog","og:description":"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It's an important question when you are writing shared code that uses commands from other modules. And, the answer has become","og:url":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/","article:published_time":"2016-07-13T13:00:00+00:00","article:modified_time":"2016-07-13T15:24:24+00:00","twitter:card":"summary_large_image","twitter:title":"Which Version Does Import-Module Import? - DEV SAPIEN Blog","twitter:description":"Applies to: Windows PowerShell 5.0.10586, 5.1.14385.0, PowerShellGet 1.0.0.1 The Import-Module cmdlet, the #Requires directive, and module auto-loading (PS 3.0+) all import modules into a PowerShell session. But, which modules do they import by default? It's an important question when you are writing shared code that uses commands from other modules. And, the answer has become"},"aioseo_meta_data":{"post_id":"12446","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 16:02:35","updated":"2026-08-28 16:02:35"},"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\/powershell-5-0\/\" title=\"PowerShell 5.0\">PowerShell 5.0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tWhich Version Does Import-Module Import?\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"PowerShell 5.0","link":"https:\/\/dev.sapien.com\/blog\/topics\/powershell-5-0\/"},{"label":"Which Version Does Import-Module Import?","link":"https:\/\/dev.sapien.com\/blog\/2016\/07\/13\/which-version-does-import-module-import\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12446","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\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=12446"}],"version-history":[{"count":27,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12446\/revisions"}],"predecessor-version":[{"id":12493,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/12446\/revisions\/12493"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=12446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=12446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=12446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}