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

前端 未结 5 1218
孤独总比滥情好
孤独总比滥情好 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:20

    PSSnapin provides a way to protect your assemblies by installing DLLs in protected directory as compared to Module which can be played by just replacing files.

    Ref: MSDN Link for PSSnapin

提交回复
热议问题