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


powershell has 2 means importing additional cmdlets session, add-pssnapin , import-module. docs not @ clear regarding when 1 chose 1 on other. know difference between these?

modules came in powershell v2. v2 can still load snapins though, if necessary. big difference modules can deployed using xcopy. there no need register anything. deploy snapin, installer have hack registry, require elevated priveleges. load module, have use import-module command.

modules can have lot more metadata using module manifest well, can specify kinds of things might useful end user know, including version, dependencies on other modules, , powershell hosts can run module.

all being said, if writing binary module in c# or vb, still use same pssnapin base class.

to more information, check out

ps > about_modules 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -