Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
517 changes: 0 additions & 517 deletions Documentation/MSDN/PnP-PowerShell-Overview.md

This file was deleted.

2 changes: 1 addition & 1 deletion Documentation/Set-PnPSiteScript.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Updates an existing Site Script and changes the title.
### ------------------EXAMPLE 2------------------
```powershell
PS:> $script = Get-PnPSiteScript -Identity f1d55d9b-b116-4f54-bc00-164a51e7e47f
PS:> Set-PnPSiteScript -Identity = $script -Title "My Site Script"
PS:> Set-PnPSiteScript -Identity $script -Title "My Site Script"
```

Updates an existing Site Script and changes the title.
Expand Down
517 changes: 517 additions & 0 deletions Documentation/docs-conceptual/sharepoint-pnp/sharepoint-pnp-cmdlets.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions ModuleFilesGenerator/MarkDownGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,14 +335,14 @@ private void GenerateMSDNTOC()
var originalTocMd = string.Empty;
var newTocMd = string.Empty;

var msdnDocPath = $"{_solutionDir}\\Documentation\\MSDN";
var msdnDocPath = $"{_solutionDir}\\Documentation\\docs-conceptual\\sharepoint-pnp";
if (!Directory.Exists(msdnDocPath))
{
Directory.CreateDirectory(msdnDocPath);
}

// Generate the landing page
var landingPagePath = $"{msdnDocPath}\\PnP-PowerShell-Overview.{extension}";
var landingPagePath = $"{msdnDocPath}\\sharepoint-pnp-cmdlets.{extension}";
GenerateMSDNLandingPage(landingPagePath);

// TOC.md generation
Expand Down Expand Up @@ -425,7 +425,7 @@ private void GenerateMSDNLandingPage(string landingPagePath)
foreach (var cmdletInfo in categoryCmdlets)
{
var description = cmdletInfo.Description != null ? cmdletInfo.Description.Replace("\r\n", " ") : "";
docBuilder.AppendFormat("**[{0}]({1}-{2}.md)** |{3}|{4}{5}", cmdletInfo.FullCommand.Replace("-", "‑"), cmdletInfo.Verb, cmdletInfo.Noun, description, cmdletInfo.Platform, Environment.NewLine);
docBuilder.AppendFormat("**[{0}](../../sharepoint-ps/sharepoint-pnp/{1}-{2}.md)** |{3}|{4}{5}", cmdletInfo.FullCommand.Replace("-", "‑"), cmdletInfo.Verb, cmdletInfo.Noun, description, cmdletInfo.Platform, Environment.NewLine);
}
}

Expand Down
8 changes: 4 additions & 4 deletions ModuleFilesGenerator/landingpage.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ _**Applies to:** SharePoint Online | SharePoint 2016 | SharePoint 2013_
There are 3 ways to install the cmdlets. We recommend, where possible, to install them from the [PowerShell Gallery](https://www.powershellgallery.com). Alternatively you can download the setup files or run a PowerShell script to download the PowerShellGet module and install the cmdlets subsequently.

### PowerShell Gallery ###
If you main OS is Windows 10, of if you have [PowerShellGet](https://github.com/powershell/powershellget) installed, you can run the following commands to install the PowerShell cmdlets:
If you main OS is Windows 10, or if you have [PowerShellGet](https://github.com/powershell/powershellget) installed, you can run the following commands to install the PowerShell cmdlets:

|**SharePoint Version**|**Command to install**|
|------------------|------------------|
Expand All @@ -25,15 +25,15 @@ If you main OS is Windows 10, of if you have [PowerShellGet](https://github.com/
In order to install the cmdlets when you get this error specify the -SkipPublisherCheck switch with the Install-Module cmdlet, e.g. ```Install-Module SharePointPnPPowerShellOnline -SkipPublisherCheck -AllowClobber```

### Setup files ##
You can download setup files from the [releases](https://github.com/officedev/pnp-powershell/releases) section of the PnP PowerShell repository. These files will up be updated on a monthly basis. Run the install and restart any open instances of PowerShell to use the cmdlets.
You can download setup files from the [releases](https://github.com/sharepoint/pnp-powershell/releases) section of the PnP PowerShell repository. These files will up be updated on a monthly basis. Run the install and restart any open instances of PowerShell to use the cmdlets.

### Installation script ##
This is an alternative for installation on machines that have at least PowerShell v3 installed. You can find the version of PowerShell by opening PowerShell and running ```$PSVersionTable.PSVersion```. The value for ```Major``` should be above 3.

To install the cmdlets you can run the below command which will install PowerShell Package Management and then install the PowerShell Modules from the PowerShell Gallery.

```powershell
Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/OfficeDev/PnP-PowerShell/master/Samples/Modules.Install/Install-SharePointPnPPowerShell.ps1')
Invoke-Expression (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/sharepoint/PnP-PowerShell/master/Samples/Modules.Install/Install-SharePointPnPPowerShell.ps1')
```

## Updating ##
Expand Down Expand Up @@ -74,7 +74,7 @@ At the following links you will find a few videos on how to get started with the
* https://channel9.msdn.com/blogs/OfficeDevPnP/PnP-Webcast-PnP-PowerShell-Getting-started-with-latest-updates

### Setting up credentials ##
See this [wiki page](https://github.com/OfficeDev/PnP-PowerShell/wiki/How-to-use-the-Windows-Credential-Manager-to-ease-authentication-with-PnP-PowerShell) for more information on how to use the Windows Credential Manager to setup credentials that you can use in unattended scripts
See this [wiki page](https://github.com/SharePoint/PnP-PowerShell/wiki/How-to-use-the-Windows-Credential-Manager-to-ease-authentication-with-PnP-PowerShell) for more information on how to use the Windows Credential Manager to setup credentials that you can use in unattended scripts

## Cmdlet overview
---cmdletdata---
Expand Down