I bet this is a 32-bit vs. 64-bit issue. You can run powershell as a 32-bit process or a 64-bit process, but the snapin registries for these two modes are separate. If you registered SwisPowerShell.dll using the 32-bit version of installutil.exe, it will only be accessible in a 32-bit PowerShell process. Did you register using both C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe and C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\InstallUtil.exe?
↧