User Tools

Site Tools


software:squirrel:restore_buttons

This is an old revision of the document!


Overview: Squirrel Restore Buttons for SharePoint The Squirrel Restore Buttons provide an intuitive way for end users to manage archived files directly within the SharePoint interface. With these buttons, users can:

  • Quickly Identify Archived Files: The restore button highlights which files have been archived, making it easy to spot them at a glance.
  • Restore with a Single Click: No need for complex processes—users can restore archived files effortlessly by clicking the button within the SharePoint UI.

This functionality is powered by a combination of a provided SPFx package and PowerShell scripts, ensuring seamless integration with your SharePoint environment.

Setting Up Restore Buttons in SharePoint Step 1: Upload the SPFx Package

Obtain the SPFx package provided by SmiKar Software.
Go to your SharePoint Admin Center. (https://TENANTNAME-admin.sharepoint.com/)
Navigate to More Features > Apps > Open.
Click Upload and select the SPFx package.
Optional. Choose All sites to deploy the package to all of your sharepoint sites / or select
The app has now been enabled
Confirm the App shows that the status is enabled and available to all sites.

Add the Restore Column to your SharePoint Sites. SmiKar will provide you with three powershell scripts. These are;

  • Delete and Unassociate Restore Buttons.ps1. This script will remove the Squirrel Restore column from all of your SharePoint Sites.
  • Create and associate restore button.ps1. This script will add the Squirrel Restore column to all of your SharePoint Sites.
  • Add Button to Individual Site.ps1. This script will add the Squirrel Restore column to one individual SharePoint Site.
  • You will need to ensure that you have Global Administrator rights to your SharePoint Tenant

Step 2: Create and Deploy the Restore Column to all your SharePoint Sites. We will run the “create and associate restore button.ps1” to add the Squirrel Restore Column to all of your current SharePoint Sites.

Obtain the powershell script provided by SmiKar Software.
Open the Powershell script in Visual Studio Code
You will need to update the powershell script, with the Tenant Name of your SharePoint environment. On line 2, within the brackets replace “TENANTNAME” with your details. Make sure to save the file before continuing.
Now that you have saved the file, you are ready to run the script against your SharePoint Environment. Within Visual Studio Code, press F5 to start running the script.
The script will now run through all your SharePoint Sites, and add the Restore Column to each Document Library.
Once completed, to confirm, choose a document library from one of your SharePoint Sites. You should now see a Restore Column for the Squirrel Restore Button to show when a file is archived by Squirrel.

Step 3: Adding the Restore Column to an individual SharePoint Site. We will run the “Add Button to Individual Site.ps1” to add the Squirrel Restore Column a specific SharePoint Site. This should be done anytime you create a new SharePoint site, and want the Squirrel Restore button to be available for your end users.

Open the Powershell script in Visual Studio Code
You will need to update the powershell script, with the Tenant Name of your SharePoint environment. On line 2, within the brackets replace “TENANTNAME” with your details. Make sure to save the file before continuing.
Now that you have saved the file, you are ready to run the script against your SharePoint Environment. Within Visual Studio Code, press F5 to start running the script.

Step 4: Deleting the Restore Column from all of your SharePoint Sites. We will run the “Delete and Unassociate Restore Buttons.ps1” to delete the Squirrel Restore Columns from all of your SharePoint Sites.

Open the Powershell script in Visual Studio Code
You will need to update the powershell script, with the Tenant Name of your SharePoint environment. On line 2, within the brackets replace “TENANTNAME” with your details. Make sure to save the file before continuing.
Now that you have saved the file, you are ready to run the script against your SharePoint Environment. Within Visual Studio Code, press F5 to start running the script.
software/squirrel/restore_buttons.1738457437.txt.gz · Last modified: 2025/02/02 11:50 by support@smikar.com