Thursday, December 26, 2024

When using Import-Module you got an unblock file error

When using Import-Module you got an unblock file error

Example:

PS C:\Users\Administrator> Import-Module PSFTP

Security warning
Run only scripts that you trust. While scripts from the internet can be useful, this script can potentially harm your
computer. If you trust this script, use the Unblock-File cmdlet to allow the script to run without this warning
message. Do you want to run C:\Users\Administrator\Documents\WindowsPowerShell\Modules\PSFTP\PSFTP.Format.ps1xml?
[D] Do not run  [R] Run once  [S] Suspend  [?] Help (default is "D"): R

To solve that issue go the the properties, then use the “Unblock” option

 

 

 

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Stay Connected

35FollowersFollow
- Advertisement -

Latest Articles