{"id":10651,"date":"2006-04-25T12:18:06","date_gmt":"2006-04-25T12:18:06","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2006\/04\/25\/mshsnapin-part-1-usage-of-mshsnapin-commands\/"},"modified":"2019-02-18T13:24:57","modified_gmt":"2019-02-18T20:24:57","slug":"mshsnapin-part-1-usage-of-mshsnapin-commands","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/mshsnapin-part-1-usage-of-mshsnapin-commands\/","title":{"rendered":"Mshsnapin (part 1): usage of mshsnapin commands."},"content":{"rendered":"<p>Latest beta3 release of monad added the capability of adding\/removing cmdlets and providers&nbsp;in current running session through mshsnapins. Mshsnapin is a logic group of cmdlets and providers can be manipulate as a unit in monad engine. <\/p>\n<p>Following&nbsp;commands can be&nbsp;used for manipulating mshsnapins, <\/p>\n<ul>\n<li><strong>get-mshsnapin<\/strong>: this will list&nbsp;all&nbsp;mshsnapin&#8217;s that are loaded in current monad session.\n<li><strong>get-mshsnapin -reg<\/strong>: this will list all mshsnapin&#8217;s that are installed on current machine.\n<li><strong>add-mshsnapin &lt;mshsnapin-name&gt;:&nbsp;<\/strong>this will load a mshsnapin into current monad session.\n<li><strong>remove-mshsnapin &lt;mshsnapin-name&gt;:&nbsp;<\/strong>this will unload a mshsnapin&nbsp;from current monad session.<\/li>\n<\/ul>\n<p>&#8211; George<\/p>\n<p>[<i>Edit: Monad has now been renamed to Windows PowerShell.  This script or discussion may require slight adjustments before it applies directly to newer builds.<\/i>]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Latest beta3 release of monad added the capability of adding\/removing cmdlets and providers&nbsp;in current running session through mshsnapins. Mshsnapin is a logic group of cmdlets and providers can be manipulate as a unit in monad engine. Following&nbsp;commands can be&nbsp;used for manipulating mshsnapins, get-mshsnapin: this will list&nbsp;all&nbsp;mshsnapin&#8217;s that are loaded in current monad session. get-mshsnapin -reg: [&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-10651","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>Latest beta3 release of monad added the capability of adding\/removing cmdlets and providers&nbsp;in current running session through mshsnapins. Mshsnapin is a logic group of cmdlets and providers can be manipulate as a unit in monad engine. Following&nbsp;commands can be&nbsp;used for manipulating mshsnapins, get-mshsnapin: this will list&nbsp;all&nbsp;mshsnapin&#8217;s that are loaded in current monad session. get-mshsnapin -reg: [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/10651","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=10651"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/10651\/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=10651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=10651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=10651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}