What It Does
System:reboot is Blocked by ScriptPolicyGuard: high-impact device reboot command. It can appear in the compatibility inventory, but it must not be used in normal macro code or AI-generated code.
System:reboot is Blocked by ScriptPolicyGuard: high-impact device reboot command. Do not use it in normal macro code or AI-generated code.
System:reboot is Blocked by ScriptPolicyGuard: high-impact device reboot command. It can appear in the compatibility inventory, but it must not be used in normal macro code or AI-generated code.
Do not use it in production macros. If the user asks for this behavior, state that it is unsupported and stop the macro safely.
Parameter and return details are not actionable here; the call is blocked by the policy gate.
Use logging, user notification, and requestStop() for safe exit instead of this call.
The snippet below is a starter pattern that can be applied directly in runtime flow.
-- System:reboot is blocked by ScriptPolicyGuard
print("System:reboot is blocked by policy")
requestStop()From foundation to combined usage, each level is provided as a separate code block so you can copy the level you need and adapt it directly.
This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:reboot is blocked by Macro Handler policy.
print("System:reboot is blocked by ScriptPolicyGuard")
requestStop()-- System:reboot is blocked by Macro Handler policy.
print("System:reboot is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:reboot is blocked by Macro Handler policy.
print("System:reboot is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:reboot is blocked by Macro Handler policy.
print("System:reboot is blocked by ScriptPolicyGuard")
requestStop()This blocked-call example uses logging and graceful stop instead of invoking the blocked API.
-- System:reboot is blocked by Macro Handler policy.
print("System:reboot is blocked by ScriptPolicyGuard")
requestStop()