Technical FAQs

Ask a Question

PME 7.2.x Database Backup and Maintenance Tasks Not Completing

The Database Backup and Maintenance Tasks are not completing in PME 7.2.x 
There are no errors in the Event Viewer Applications log or in the Windows Task Scheduler

When attempting to run the database backup PowerShell script manually the user will receive the following error.

PS C:\Program Files (x86)\Schneider Electric\ION Enterprise\config\cfg\DbScheduledTasks> .\backup.ps1 nom
The term 'try' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again

Product Line:
Power Monitoring Expert (PME) 7.2.x

Windows PowerShell

The system is running PowerShell version 1.0 but the PME PowerShell scripts require PowerShell version 2.0 to run.

You can verify which version of PowerShell you have in 2 ways:
1) Run the command, $Host.version and it will display the PowerShell version as the Major build number:
PowerShell 1.0:
Major  Minor  Build  Revision
-----  -----  -----  --------
1     0     0     0

PowerShell 2.0:
Major  Minor  Build  Revision
-----  -----  -----  --------
2     0     -1    -1

2) Check the copyright date when you open the PowerShell window.
Copyright (C) 2006 = PowerShell 1.0
Copyright (C) 2009 = PowerShell 2.0

Install PowerShell 2.0 in the Windows Management Framework Core.

You can download the Windows Management Framework Core at the following link.

If running Windows Server 2008 you will be required to reboot the server for the changes to take effect.

After updating PowerShell the Windows Scheduled Tasks for database backups and maintenance will now complete.
Was this helpful?
What can we do to improve the information ?