Category: PowerShell
-
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…
-
#MSIgnite sessions available in a single spreadsheet
Update (31/01/15): Session spreadsheet updated and now includes 275 sessions. Those involved with SharePoint, Office 365, Yammer, the communities and the wider industry will already know about the Ignite conference Microsoft has planned for May this year. Microsoft published the conference sessions on the Ignite website this afternoon, introduced through this Office Blog post. 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…
-
Using PowerShell with Windows Azure
If you’re working with Windows Azure and want to use PowerShell to perform management tasks you will first need to install and configure Windows Azure PowerShell as per this article “How to install and configure Windows Azure PowerShell“. Download and install the Microsoft Web Platform Installer Launch the Microsoft Web Platform Installer Select the Windows Azure PowerShell and…
-
Working with Managed Paths in SharePoint using PowerShell
Quite a common requirement for implementations of SharePoint that I am involved in is to create new managed paths for a given web application. While it is a simple task to perform via Central Administration, I inevitably turn to PowerShell to achieve this so that I can then include it as part of larger configuration or…
-
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.
-
Review, rename and test
Review It goes without saying…but whenever you download and use any code or script from this site, or any site for that matter, you should review and understand what the code or script is doing before you attempt to use it. Rename Using the PowerShell scripts that I share as an example. I distribute these scripts…