Skip to content

petercarson/masthead-powershell

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Introduction

masthead.ps1 is a collection of PowerShell scripts that make managing your Masthead sites easier. Currently, the library contains:

  1. Install-To-Site
  2. Uninstall-From-Site
  3. Install-To-Site-And-Subsites
  4. Uninstall-From-Site-And-Subsites

Getting Started

Before you use our library, you'll need to make sure you have the latest version of the SharePoint Online Client Components SDK installed on your system.

  1. Download masthead.ps1 into a local folder on your system.
  2. Open PowerShell, and navigate to the folder containing masthead.ps1
  3. Load the script into memory with the following command: . ./masthead.ps1
  4. Follow the prompts to add the necessary credentials for the library to work.

Anytime you start a new session with the library you'll need to go through steps 3 and 4.

Current Functions

To run these functions, you'll need to make sure that the library is first loaded into memory. Once done, you can call these functions directly from the PowerShell command line.

Command Description
Install-To-Site <ABSOLUTE_SITE_URL> Adds the version of Masthead you have installed to the target site. Make sure the URL you're using is a reference to the site without any pages on the end (ex: https://<your-site>.sharepoint.com/sites/<site-name>)
Uninstall-From-Site <ABSOLUTE_SITE_URL> Removes Masthead from the target site. Make sure the URL you're using is a reference to the site without any pages on the end (ex: https://<your-site>.sharepoint.com/sites/<site-name>)
Install-To-Site-And-Subsites <ABSOLUTE_SITE_URL> Adds the version of Masthead you have installed to the target site as well as all of its subsites (and those subsites' subsites, etc.). Make sure the URL you're using is a reference to the site without any pages on the end (ex: https://<your-site>.sharepoint.com/sites/<site-name>)
Uninstall-From-Site-And-Subsites <ABSOLUTE_SITE_URL> Removes Masthead from the target site as well as all of its subsites (and those subsites' subsites, etc.). Make sure the URL you're using is a reference to the site without any pages on the end (ex: https://<your-site>.sharepoint.com/sites/<site-name>)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%