Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

徵狀

如果您將 [ 開啟腳本執行] 群組原則設定設為 [允許所有腳本],則 sqlps 實用程式無法執行,而且您會收到下列錯誤訊息:

Microsoft (R) SQL Server (R) PowerShellVersion 11.0.5058.0 版權所有(c) 2012 Microsoft。 保留擁有權利。 executionpolicy: Windows PowerShell 已成功更新您的執行原則,但此設定會被在更特定的作用中定義的原則所取代。 由於覆寫,您的 shell 會將其目前的有效執行原則保留為「無限制」。 輸入「ExecutionPolicy-清單」來查看您的執行原則設定。 如需詳細資訊,請參閱「Get-help ExecutionPolicy」。在第一行:1個字元: 20 + set-executionpolicy <<<< RemoteSigned-作用中處理-Force + CategoryInfo: PermissionDenied:(:)[Set-ExecutionPolicy],SecurityException + FullyQualifiedErrorId: ExecutionPolicyOverride、. 命令. SetExecutionPolicyCommand

此外, syspolicy_purge_history作業也會失敗。注意: [ 開啟腳本執行] 群組原則設定可以在群組原則管理主控台的下列位置進行設定:

系統管理 Templates\Classic 系統管理 \Windows 元件 \Windows PowerShell

解決方案

此問題已在 SQL Server 的下列累積更新中修正:

SQL Server 2016 SP1 的累積更新3

Sql server 2014 SP1 的累積更新9( SQL server 2014 SP2)累加更新 3

SQL Server 2012 累積更新 4 Service Pack 3

狀態

Microsoft 已確認<適用於>一節中所列的 Microsoft 產品確實有上述問題。

參考

瞭解 Microsoft 用於描述軟體更新的 詞彙

Need more help?

Want more options?

探索訂閱權益、瀏覽訓練課程、瞭解如何保護您的裝置等等。

社群可協助您詢問並回答問題、提供意見反應,以及聆聽來自具有豐富知識的專家意見。

Was this information helpful?

How satisfied are you with the translation quality?
What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×