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

Reply To: PSRemoting – PSSessionConfiguration – Using PSSnapin in ModulesToImport

$
0
0

On the other hand, if you create a module of your own

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

Put it in C:\Program Files\WindowsPowerShell\Modules\TestModule (or name it something else) and then

Register-PSSessionConfiguration -Name T -ModulesToImport 'C:\Program Files\WindowsPowerShell\Modules\TestModule'

That at least does seem to work.


Viewing all articles
Browse latest Browse all 13067

Latest Images

Trending Articles



Latest Images