Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: PSRemoting – PSSessionConfiguration – Using PSSnapin in ModulesToImport

$
0
0

Martin,

Thanks for taking the time to investigate this scenario.

I think I'll follow up as you suggested with a Connect entry to tell Microsoft about this.

As I was looking at the current set of PSSnapins on my server, it appeared that only one, WDeploySnapin3.0 could be handled by the technique of

$snapin = Get-PSSnapin -Registered WDeploySnapin3.0
Import-Module (Join-Path $snapin.ApplicationBase $snapin.ModuleName) -Verbose

So, as a somewhat generic work around, given a list of PSnapin resources needed I can dynamically create a script which will do an Add-PSSnapin for each one.

This is not too much additional work on my part, but I was expecting a cleaner solution out of the box.

Thanks again,

Don


Viewing all articles
Browse latest Browse all 13067

Trending Articles