Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space MSMBASE and version 8.0

...

Script activity is logged in the cC:\programdata\Macrium\SiteManager\AgentUserScript.log file

...

Script Return ValueOperating ModeDescription
0NormalThe Agent is running normally and all scheduled backups are being run
-1Ignoring scheduled backups

The Agent should not run backups. When this error code is returned, Site Manager will defer all scheduled backups for the agent until the user script starts returned to return normal status again.

When the agent returns to normal status, any missed backups will be executed immediately as if the computer had been offline and 'Defer Missed Backups' was set in the Site Manager schedule.

This can be used for computers which that move between networks and should not perform backups if they're connected over VPN or WiFi

Any other valueNormalAny other value is assumed to be an error code in the user script and the script execution is ignored

...

For debugging purposes, script activity is logged in cC:\programdata\Macrium\SiteManager\AgentUserScript.log on the agent computer.

The results of the script execution can be shown in the Computers table in Site Manager by enabling the "'User Script Message" ' and "'Operating Mode" ' columns which are hidden by default:

...

The Agent service runs the script as a non-privileged process using the Network Service account, regardless of what user the Agent agent service is configured to run as. This is to prevent any possibility of a user script being executed with Administrator privileges.