Author: Fazle Hasan
July 21, 2022
When I try to run this following Powershell Script to create BC Container Sandbox
PS C:\WINDOWS\system32> C:\Users\Fazle\Downloads\CreateBCSandbox.ps1
I get this Error
File C:\Users\<UserID>\Downloads\CreateBCSandbox.ps1 cannot be loaded. The file C:\Users\<UserID>\Downloads\CreateBCSandbox (2).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
I Added this following line to the script (CreateBCSandbox.ps1)
Check-BcContainerHelperPermissions -Fix
This fixed the issue.
Comments
Post a Comment