Tag: Script
-
Switch between modern SharePoint homepages using PnP PowerShell
I’ve been working on a modern intranet project amongst over projects for the last 12-months. This has been more about the transformation of content and business processes, rethinking information architecture and reimagining a modern intranet than it has been about custom development. I’ve been working on a modern intranet project amongst over projects for the…
-
Working with SharePoint’s Second Stage Recycle Bin in PowerShell
I thought I’d share a PowerShell script that I’ve created to perform a few tasks against a Site Collection Second Stage Recycle Bin (SSRB) in SharePoint. The requirement was to delete items that were older than a set number of days from the Second Stage Recycle Bin (SSRB). A record of each item deleted also needed…
-
All #SPC14 sessions available in a single spreadsheet!
Update: Wednesday, 8th January 2014. This post has seen an incredible amount of traffic which I have found to be a very rewarding experience- thank you! I’ve lived up to my word and managed to export the speaker information. Both the spreadsheet and PowerShell script has been updated to include this information. Something I have…
-
Adding a Yes, No, Cancel prompt to a PowerShell script
When I write PowerShell scripts, I often want to step through sections. This allows me to decided whether to proceed with parts of my script or not. I achieve this by using the ChoiceDescription class as demonstrated below. More information about using prompts in PowerShell can be found in the following article and tip on Microsoft TechNet.
-
Backup and download solutions in SharePoint from the configuration database
The need to backup or download SharePoint solutions or WSPs from SharePoint come’s up from time to time. This usually crops up for me when upgrading client environments, and they have forgotten where they put their original solutions, or there is a discrepancy as to which version they installed. To download the solutions from the config…