技术文章 - CS373502

从 PowerShell 运行数据库更新脚本进行 ThingWorx 升级时,MSSQL 出现“update_mssql.ps1 未进行数字签名”异常,PostgreSQL 出现“update_postgresql.ps1 未进行数字签名”异常

已修改: 30-Jul-2025   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 9.0 to 9.7

说明

  • 在 Windows PowerShell 中运行数据库更新脚本时发生异常
update_mssql.ps1 is not digitally signed. You cannot run this script on the current system because running scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
+ ./update_mssql.ps1 -h xxx -p xxxxx -d TW -u tw-xxx - ...
+ ~~~~~~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
  • 在 Windows 服务器上升级 ThingWorx 期间无法执行未签名的脚本
  • 尝试使用Upgrade_Postgres脚本从 ThingWorx 进行手动升级时,遇到错误:
D:\Software\MED-61111-CD-093_SP9_ThingWorx-Platform-Postgres-9-3-9\update\update_postgres.ps1 cannot be loaded. The file D:\Software\MED-61111-CD-093_SP9_Thingworx-Platform-Postgres-9-3-9\update\update_postgres.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.
  • 即使将 ExecutionPolicy 更改为 Bypass,问题仍然存在
这是文章 373502 的 PDF 版本,可能已过期。最新版本 CS373502