How does PowerShell work in O&O Syspectr
Actually, PowerShell works in O&O Syspectr just as if you were working directly on the computer. In addition, O&O Syspectr offers the evaluation of the outcome of the PowerShell script and scheduling, as you may know from Linux crontab . This makes it possible to execute PowerShell scripts at specific times, without having to use the Windows Task Scheduler. With the help of the PowerShell scripting app, you are no longer bound to the restrictions of popular IT monitoring solutions. It is finally possible to customize and extend your wishes according to your IT monitoring!Create and manage PowerShell scripts in O&O Syspectr
PowerShell scripts can be fully managed in O&O Syspectr via the web application. You can create, edit, activate and deactivate, and delete scripts. In other words, you can create, edit and see the results of a script for one of your computers from virtually anywhere in the world. Scripts that you have created once can also be applied to any other computer.Evaluation of the results of PowerShell scripts
Each script provides a result value (so-called. exit code) at the end. This value influences the status of your computer and is interpreted as follows:- exit 0 (or no exit code was delivered): Status OK (green)
- exit 1: Status warning (yellow)
- exit 2 or greater: Status problem (red)
Execution of scripts
Executing scripts is possible as follows:- Manually – manual execution using O&O Syspectr
- Automatically during system start – the script runs at each system start up
- Automatically at certain times – the times can be specified using crontab-Syntax
Syntax of scheduling
If the user-defined execution is enabled, the scripts can be run automatically. The line consists of the following 5 fields: [Minutes] [Hours] [Days] [Months] [Weekdays]Definition of fields
Field | Valid values | Notes |
---|---|---|
Minutes | 0...59 | * for each minute | |
Hours | 0...23 | * for each hour | |
Days | 1...31 | * for each day | If days and weekdays are used together, they are not evaluated together but individually (see exception on examples) |
Months | 1...12 | * for each month | |
Weekdays | 0...7 | * for each weekday | 0 or 7 stand for Sunday |
Examples for scheduling with O&O Syspectr
[Minutes] | [Hours] | [Days] | [Months] | [Weekdays] | Explanation |
---|---|---|---|---|---|
10 | 0 | * | * | * | Each day ten minutes to midnight. |
10 | 0 | * | * | 3 | Each Wednesday ten minutes to midnight. |
0 | * | * | * | * | Every day on each full hour |
*/15 | 4-16 | * | * | 6,7 | Every 15 minutes between 4 a.m. and 4 p.m. on Saturday and Sunday. |
* | * | * | * | * | Every minute (minimal setting option) |
* | 14 | 1-10 | 5 | 1 | On May 1 to 10 and on each Monday in May at 2 p.m.; This is an exception, when days and weekdays are used together |
Compatibility
The PowerShell is available in different versions. To find out which version is installed on your system, you can investigate using O&O Syspectr in the Dashboard. Basically:- Version 1.0 is obsolete and should no longer be used
- Version 2.0 is pre-installed by default in Windows 7. It can be downloaded and installed free of charge for Windows XP, Windows Server 2003 and Windows Vista.
- Version 3.0 is standard since Windows 8. It is also available for Windows 7 SP1 and Windows Server 2008 R2 SP1.
- Version 4.0 is the current version and can be installed as component of Windows Management Framework 4.6.1.