This project is read-only.

Error loading cmdlets from Snapin


I've received "Cannot bind argument to parameter 'Name' because it is an empty string." when attempting to load a custom snapin.

I downloaded the code and worked around it.

The problem was in the ipmoTemplate resource. For snapins the line:
{0} -Name "{2}"{3} -ErrorAction Stop
should be: {0} -Name "{1}"{3} -ErrorAction Stop

Then the subsequent line for snapins needs to be if ((Get-PSSnapin.....) rather than ((Get-Module....).


Camelot wrote Oct 7, 2016 at 5:49 PM

Thanks, I'll take a look into this.