Hôm nay chúng tôi có thể giúp gì cho bạn?

PME 7.2.2/PME 8.x database scheduled tasks are unsuccessful

Issue
In PME 7.2.2 and PME 8.x systems, the Windows scheduled tasks that are responsible for executing the database backup/maintenance tasks are not working.
In the Windows Task Scheduler, the tasks appear to completing successfully. Also in checking the Windows Event Viewer, no errors are found from the task executions.
However, when the user follows KB FA263465 to troubleshoot the powershell scripts, the following error is returned:
Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\Microsoft.SqlServer.Management.PSProvider.dll' or one of its dependencies. The system cannot find the file specified.

Powershell

Product Line
Power Monitoring Expert 7.2.2
Power Monitoring Expert 8.x

Note: This issue was solved after PME 8.x by using newer SQL versions that corrected the problem.

Environment
Windows Task Scheduler
Windows PowerShell
SQL Server

Cause
The SQL Server PowerShell snapins are not registered.

Resolution
Determine the version of PowerShell that is being executed by the Windows Scheduled Tasks.

- Open the Windows Task Scheduler then open the properties on one of the PME Scheduled Tasks.
- Click on the Actions tab and make note of the directory path.
*For the 64-bit version of PowerShell the directory path will include "system32"
*For the 32-bit version of PowerShell the directory path will include "syswow64"

Scheduler

- Open PowerShell
* Open the (x86) version for 32-bit

- Run the following command to determine if the SQL Server PowerShell Snapins are registered to the appropriate version of PowerShell

get-pssnapin -registered

If the appropriate snapins are registered you will see the following output

Name        : SqlServerCmdletSnapin100
PSVersion   : 2.0
Description : This is a PowerShell snap-in that includes various SQL Server cmdlets.

Name        : SqlServerProviderSnapin100
PSVersion   : 2.0
Description : SQL Server Provider

PS

If the snapins are registered the following procedure will not need to be performed and this is not the cause of the Windows Scheduled tasks failing to execute.

If the snapins are not registered you will receive an error message notifying that no snapins are registered.

- Run the following commands in PowerShell to register the SQL Server PowerShell snapins


For 32-bit PowerShell run:
set-alias installutil $env:windir\microsoft.net\framework\v2.0.50727\installutil

For 64-bit PowerShell run:
set-alias installutil $env:windir\microsoft.net\framework64\v2.0.50727\installutil

For the following commands be sure to check the directory path to ensure that the dll files are in the specified location. The file directory can vary depending on SQL version.

installutil -i "c:\Program Files\Microsoft SQL Server\100\Tools\Binn\Microsoft.SqlServer.Management.PSProvider.dll"

installutil -i "c:\Program Files\Microsoft SQL Server\100\Tools\Binn\Microsoft.SqlServer.Management.PSSnapins.dll"

Add-PSSnapin SqlServerCmdletSnapin100

Add-PSSnapin SqlServerProviderSnapin100


- After these PowerShell commands have been executed run the following command in PowerShell to verify that the SQL Server snapins have been registered.

get-snapin -registered

After the SQL Server PowerShell snapins have been registered, the Windows Scheduled tasks that run the database backup and maintenance tasks will properly execute.

Recommendation

If you are using an older version of PME, consider upgrading to the latest version for improved protocol support and security. For assistance with integration or upgrades, contact Schneider Electric Technical Support at: pmo.support@se.com

Support Information


Schneider Electric Việt Nam

Tìm hiểu thêm
Phạm vi:
Tìm hiểu thêm
Phạm vi:

Bạn cần trợ giúp?

Bạn cần trợ giúp?

Công cụ chọn sản phẩm

Công cụ chọn sản phẩm

Nhanh chóng và dễ dàng tìm được sản phẩm và phụ kiện phù hợp cho các ứng dụng của bạn.

Nhận báo giá

Nhận báo giá

Bắt đầu gửi yêu cầu bán hàng trực tuyến và chuyên gia sẽ liên hệ với bạn.

Nơi mua hàng?

Nơi mua hàng?

Dễ dàng tìm nhà phân phối Schneider Electric gần bạn nhất.

Trung tâm Hỗ trợ

Trung tâm Hỗ trợ

Tìm sự hỗ trợ cho mọi nhu cầu của bạn tại một nơi.

  • Tài liệu về Sản phẩm
  • Tải xuống phần mềm
  • Công cụ chọn Sản phẩm
  • Thay thế và thay đổi sản phẩm
  • Trung tâm Hỗ trợ
  • Tìm Văn phòng của chúng tôi
  • Nhận báo giá
  • Tìm Nhà Phân phối
  • Cộng đồng Schneider Electric
  • Cơ hội nghề nghiệp
  • Hồ sơ doanh nghiệp
  • Báo cáo hành vi sai trái
  • Khả năng truy cập
  • Phòng tin tức
  • Nhà đầu tư
  • EcoStruxure
  • Tìm việc
  • Blog
  • Chính sách bảo mật
  • Thông báo về Cookie
  • Điều khoản sử dụng
  • Change your cookie settings