What's the difference between Add-PsSnapIn and Import-Module

前端 未结 5 1221
孤独总比滥情好
孤独总比滥情好 2020-12-24 06:11

Powershell has two means for importing additional cmdlets into a session, Add-PsSnapIn and Import-Module. The docs are not at all clear regarding when one would chose one ov

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-24 06:40

    This is poorly documented, so take my answer with a grain of salt. Take a look at developer documents for snapin and modules. Briefly, snapin is "just" a .Net assebly whilst module can contain scripts, asseblies and more.

提交回复
热议问题