orbbec / OrbbecSDK

Orbbec SDK C/C++ base core lib
https://www.orbbec3d.com/
Other
106 stars 17 forks source link

Cannot complete registering metadata in Powershell #142

Open triplecmike opened 1 day ago

triplecmike commented 1 day ago

Hi,

I'm very new to Femto Mega and programming stuff. I'm trying to register metadata following this post: https://github.com/orbbec/OrbbecSDK/blob/main/misc/scripts/obsensor_metadata_win10.md It failed and returned the following error message in Powershell:

.\obsensor_metadata_win10.ps1 : File C:\OrbbecSDK_v1.10.12\script\obsensor_metadata_win10.ps1 cannot be loaded. The
file C:\OrbbecSDK_v1.10.12\script\obsensor_metadata_win10.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.
At line:1 char:1
+ .\obsensor_metadata_win10.ps1 -op install_all
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess

Could anyone shed some light on this for me? Thanks!

zhonghong322 commented 23 hours ago

Do you run PowerShell with administrator privileges? You can also run Orbbec Viewer, as this tool will automatically perform the registration of metadata.