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
I'm trying to run the script with PowerShell run as admin and I'm getting the following error:
Trying to paste the content in terminal will also give this error:
Any suggestions would be appreciated :)