技术文章 - CS373502
从 PowerShell 运行数据库更新脚本进行 ThingWorx 升级时,MSSQL 出现“update_mssql.ps1 未进行数字签名”异常,PostgreSQL 出现“update_postgresql.ps1 未进行数字签名”异常
已修改: 30-Jul-2025
适用于
- 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