I have attempted to register the dll, and it always says it has successfully done.
I am using Windows 7 Pro 64 bit.
When I tried this at home with my 8.1 Windows machine it worked fine. The Windows 7 machine is at work, and I have full admin rights on the machine. I am a admin on our Domain.
I have tried the %WINDIR%\Microsoft.NET\Framework64\v4.0.30319\RegAsm.exe WinSCPnet.dll /codebase /tlb and it says successful, and tried it without the 64. They both say successful.
When I try AddType -Path "WinSCOnet.DLL" I get the following:
Add-Type : Could not load file or assembly 'file:///C:\allmystuff\Powershell Script\WinSCPnet.DLL' or one of its dependencies. Operation is not supported. (Exception from HRESULT:
At line:1 char:3
+ Add-Type -Path "WinSCPnet.DLL"
+ CategoryInfo : NotSpecified: (:) [Add-Type], FileLoadException
+ FullyQualifiedErrorId : System.IO.FileLoadException,Microsoft.PowerShell.Commands.AddTypeCommand
I have tried running in a number of files. Tried the Unblock in the dll. Checked the Registry and it shows it is in there, but not sure what I should see.
I would like to iterate I am not a developer, just trying to get things done with limited budgets.