WinSCP generate HTTP URL error

Advertisement

maksvell
Joined:
Posts:
2
Location:
Riga

WinSCP generate HTTP URL error

Hello!
Since SRP policy started on PC can't generate HTTP rural, getting an error:
C:\Program Files (x86)\WinSCP\Extensions\GenerateHttpUrl.WinSCPextension.ps1 : Cannot dot-source this command because it was defined in a different language mode. To invoke this command without importing its contents, omit the '.' operator.
+ CategoryInfo : InvalidOperation: (:) [GenerateHttpUrl.WinSCPextension.ps1], NotSupportedException
+ FullyQualifiedErrorId : DotSourceNotSupported,GenerateHttpUrl.WinSCPextension.ps1
On SRP logs don't see anything was restricted.
Can you maybe help how to figure how to fix it?
SRP not blocking .ps1, you can run regular .ps1 script manually.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,469
Location:
Prague, Czechia

Re: WinSCP generate HTTP url error

I've never seen this problem before. From the little information on the error message I've found online, it seems that your system some restrictions on executing PowerShell scripts. It somehow connected to AppLocker and PowerShell Constrained Language Mode:
https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/

I'm afraid there's not much we can do about it on our side.

You might be able to get the WinSCP PowerShell scripts whitelisted.

Reply with quote

Advertisement

You can post new topics in this forum