Skip to main content
Unlisted page
This page is unlisted. Search engines will not index it, and only users having a direct link can access it.

Restore Point - Enable and Create Restore Point

Summary

This script checks if system restore is enabled on the system drive. If it is not enabled, the script will enable system restore and set the maximum storage space used by system restore to 5%.

It later checks if a system has a restore point created within the last 30 days (the default is set to 30 in global parameters). If no restore point exists, it will create a manual restore point. The script will also create a ticket if it fails to create a manual restore point, provided the global parameter "Createticket" is set to 1 (by default, ticket creation is disabled).

Time Saved by Automation: 10 Minutes

Sample Run

Sample Run

Dependencies

  • Windows Workstation OS

Variables

Document the various variables in the script. Delete any section that is not relevant to your script.

Global Parameters

NameExampleRequiredDescription
daystocheck30TrueNumber of days to check for restore points

User Parameters

NameExampleRequiredDescription
The name of the parameterAn example value of the parameterTrue or FalseDescription of the parameter

System Properties

NameExampleRequiredDescription
The name of the propertyAn example value of the propertyTrue or FalseDescription of the property

Script States

NameExampleDescription
The name of the Script StateAn example of the Script StateDescription of the script state

Process

Describe the steps the script performs to accomplish the desired task. Note that if this script is just a front-end for a piece of Agnostic Content, you can insert a link to the documentation for that content here instead.

Output

The location and method by which this script returns data.

Examples:

  • Script log
  • Script state
  • Local file on computer
  • Dataview
  • etc.