Hello!
Working hard to learn Powershell and could use some help.
Trying to set up a Powershell FTP Client I found here:
Module is in the right place (as far as I know)
[blockquote]%USERPROFILE%\Documents\WindowsPowerShell\Modules
%WINDIR%\System32\WindowsPowerShell\v1.0\Modules[/blockquote]
I run the Cmdlet
[blockquote]Import-Module -name “PSFTP”[/blockquote]
And get this error
[blockquote]Import-Module : Errors occurred while loading the format data file:
C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml, , C:\Users\Dell
T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml: The file was skipped because of the following validation
exception: File C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml cannot be loaded. The file
C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml is not digitally signed. You cannot run this script
on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
about Execution Policies - PowerShell | Microsoft Learn…[/blockquote]
I read the Execution Policies page here
That says to run Unblock-File if my Execution Policy is RemoteSigned, which it is.
[blockquote]Unblock-File -Path “C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml”[/blockquote]
I run this without error
But when I run the same Import-Module Cmdlet I still get the same error.
[blockquote]Import-Module : Errors occurred while loading the format data file:
C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml, , C:\Users\Dell
T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml: The file was skipped because of the following validation
exception: File C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml cannot be loaded. The file
C:\Users\Dell T7400\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml is not digitally signed. You cannot run this script
on the current system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
about Execution Policies - PowerShell | Microsoft Learn…[/blockquote]
Any ideas?
Thanks!