Surfboardv2ray / batch-fragment-scanner

Batch Test v2ray fragment values to see which one works best on your network.
https:/t.me/Surfboardv2ray
MIT License
133 stars 13 forks source link

Script run issue #3

Closed theparham closed 5 months ago

theparham commented 5 months ago

I'm trying to run the script with PowerShell run as admin and I'm getting the following error:

 File C:\...\fragment.ps1 cannot be loaded. The file C:\...\fragment.ps1 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 
 https:/go.microsoft.com/fwlink/?LinkID=135170.
     + CategoryInfo          : SecurityError: (:) [], ParentContainsErrorRecordException
     + FullyQualifiedErrorId : UnauthorizedAccess

Trying to paste the content in terminal will also give this error:

Clear-Content : Cannot bind argument to parameter 'Path' because it is null.
At line:1 char:21
+ Clear-Content -Path $LOG_FILE
+                     ~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Clear-Content], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.ClearConten
   tCommand

Any suggestions would be appreciated :)

theparham commented 5 months ago

Nevermind, did a Set-ExecutionPolicy -ExecutionPolicy Bypass before running the script and it's working fine now ^_^