Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit 08eb375

Browse files
Merge pull request #886 from SharePoint/dev
June 2017 Release
2 parents f1ce067 + 398c994 commit 08eb375

File tree

291 files changed

+72499
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

291 files changed

+72499
-240
lines changed

Commands/Admin/GetTenantSite.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace SharePointPnP.PowerShell.Commands
1111
{
1212

1313
[Cmdlet(VerbsCommon.Get, "PnPTenantSite", SupportsShouldProcess = true)]
14-
[CmdletAlias("Get-SPOTenantSite")]
1514
[CmdletHelp(@"Office365 only: Uses the tenant API to retrieve site information.",
1615
Category = CmdletHelpCategory.TenantAdmin,
1716
OutputType = typeof(Microsoft.Online.SharePoint.TenantAdministration.SiteProperties),

Commands/Admin/GetTimeZoneId.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPTimeZoneId")]
10-
[CmdletAlias("Get-SPOTimeZoneId")]
1110
[CmdletHelp("Returns a time zone ID",
1211
Category = CmdletHelpCategory.TenantAdmin,
1312
OutputType = typeof(IEnumerable<Zone>),

Commands/Admin/GetWebTemplates.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPWebTemplates")]
10-
[CmdletAlias("Get-SPOWebTemplates")]
1110
[CmdletHelp(@"Office365 only: Returns the available web templates.",
1211
Category = CmdletHelpCategory.TenantAdmin,
1312
OutputType=typeof(Microsoft.Online.SharePoint.TenantAdministration.SPOTenantWebTemplateCollection),

Commands/Admin/NewTenantSite.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
namespace SharePointPnP.PowerShell.Commands
1212
{
1313
[Cmdlet(VerbsCommon.New, "PnPTenantSite")]
14-
[CmdletAlias("New-SPOTenantSite")]
1514
[CmdletHelp("Creates a new site collection for the current tenant",
1615
DetailedDescription = @"The New-PnPTenantSite cmdlet creates a new site collection for the current company. However, creating a new SharePoint
1716
Online site collection fails if a deleted site with the same URL exists in the Recycle Bin. If you want to use this command for an on-premises farm, please refer to http://blogs.msdn.com/b/vesku/archive/2014/06/09/provisioning-site-collections-using-sp-app-model-in-on-premises-with-just-csom.aspx ",

Commands/Admin/RemoveTenantSite.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace SharePointPnP.PowerShell.Commands
1111
{
1212
[Cmdlet(VerbsCommon.Remove, "PnPTenantSite", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = true)]
13-
[CmdletAlias("Remove-SPOTenantSite")]
1413
[CmdletHelp("Office365 only: Removes a site collection from the current tenant",
1514
Category = CmdletHelpCategory.TenantAdmin)]
1615
[CmdletExample(

Commands/Admin/SetTenantSite.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace SharePointPnP.PowerShell.Commands
1313
{
1414
[Cmdlet(VerbsCommon.Set, "PnPTenantSite")]
15-
[CmdletAlias("Set-SPOTenantSite")]
1615
[CmdletHelp(@"Office365 only: Uses the tenant API to set site information.",
1716
Category = CmdletHelpCategory.TenantAdmin)]
1817
[CmdletExample(

Commands/Apps/GetAppInstance.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace SharePointPnP.PowerShell.Commands.Apps
99
{
1010
[Cmdlet(VerbsCommon.Get, "PnPAppInstance")]
11-
[CmdletAlias("Get-SPOAppInstance")]
1211
[CmdletHelp("Returns a SharePoint AddIn Instance in the site",
1312
Category = CmdletHelpCategory.Apps,
1413
OutputType = typeof(List<AppInstance>),

Commands/Apps/ImportAppPackage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace SharePointPnP.PowerShell.Commands.Apps
99
{
1010
[Cmdlet(VerbsData.Import, "PnPAppPackage")]
11-
[CmdletAlias("Import-SPOAppPackage")]
1211
[CmdletHelp("Adds a SharePoint Addin to a site",
1312
DetailedDescription = "This commands requires that you have an addin package to deploy",
1413
Category = CmdletHelpCategory.Apps,

Commands/Apps/UninstallAppInstance.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace SharePointPnP.PowerShell.Commands.Apps
77
{
88
[Cmdlet(VerbsLifecycle.Uninstall, "PnPAppInstance", SupportsShouldProcess = true)]
9-
[CmdletAlias("Uninstall-SPOAppInstance")]
109
[CmdletHelp("Removes an app from a site", Category = CmdletHelpCategory.Apps)]
1110
[CmdletExample(Code = @"PS:> Uninstall-PnPAppInstance -Identity $appinstance", Remarks = "Uninstalls the app instance which was retrieved with the command Get-PnPAppInstance", SortOrder = 1)]
1211
[CmdletExample(Code = @"PS:> Uninstall-PnPAppInstance -Identity 99a00f6e-fb81-4dc7-8eac-e09c6f9132fe", Remarks = "Uninstalls the app instance with the ID '99a00f6e-fb81-4dc7-8eac-e09c6f9132fe'", SortOrder = 2)]

Commands/Base/ConnectOnline.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
namespace SharePointPnP.PowerShell.Commands.Base
1717
{
1818
[Cmdlet(VerbsCommunications.Connect, "PnPOnline", SupportsShouldProcess = false)]
19-
[CmdletAlias("Connect-SPOnline")]
2019
[CmdletHelp("Connects to a SharePoint site and creates a context that is required for the other PnP Cmdlets",
2120
DetailedDescription = "If no credentials have been specified, and the CurrentCredentials parameter has not been specified, you will be prompted for credentials.",
2221
Category = CmdletHelpCategory.Base)]

Commands/Base/DisconnectSPOnline.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace SharePointPnP.PowerShell.Commands.Base
99
{
1010
[Cmdlet(VerbsCommunications.Disconnect, "PnPOnline")]
11-
[CmdletAlias("Disconnect-SPOnline")]
1211
[CmdletHelp("Disconnects the context",
1312
Category = CmdletHelpCategory.Base)]
1413
[CmdletExample(

Commands/Base/ExecuteQuery.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Base
66
{
77
[Cmdlet("Execute", "PnPQuery")]
8-
[CmdletAlias("Execute-SPOQuery")]
98
[CmdletHelp("Executes any queued actions / changes on the SharePoint Client Side Object Model Context",
109
Category = CmdletHelpCategory.Base)]
1110
[CmdletExample(

Commands/Base/GetAuthenticationRealm.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPAuthenticationRealm")]
10-
[CmdletAlias("Get-SPOAuthenticationRealm")]
1110
[CmdletHelp("Gets the authentication realm for the current web",
1211
Category = CmdletHelpCategory.Base)]
1312
[CmdletExample(

Commands/Base/GetAzureADManifestKeyCredentials.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace SharePointPnP.PowerShell.Commands.Base
77
{
88
[Cmdlet(VerbsCommon.Get, "PnPAzureADManifestKeyCredentials")]
9-
[CmdletAlias("Get-SPOAzureADManifestKeyCredentials")]
109
[CmdletHelp("Creates the JSON snippet that is required for the manifest JSON file for Azure WebApplication / WebAPI apps",
1110
Category = CmdletHelpCategory.Base,
1211
OutputType=typeof(string),

Commands/Base/GetContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace SharePointPnP.PowerShell.Commands.Base
77
{
88
[Cmdlet(VerbsCommon.Get, "PnPContext")]
9-
[CmdletAlias("Get-SPOContext")]
109
[CmdletHelp("Returns a Client Side Object Model context",
1110
Category = CmdletHelpCategory.Base,
1211
OutputType = typeof(Microsoft.SharePoint.Client.ClientContext),

Commands/Base/GetHealthScore.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace SharePointPnP.PowerShell.Commands.Base
77
{
88
[Cmdlet("Get", "PnPHealthScore")]
9-
[CmdletAlias("Get-SPOHealthScore")]
109
[CmdletHelp("Retrieves the current health score value of the server",
1110
Category = CmdletHelpCategory.Base,
1211
OutputType=typeof(int),

Commands/Base/GetProperty.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Base
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPProperty")]
10-
[CmdletAlias("Get-SPOProperty")]
1110
[CmdletHelp("Will populate properties of an object and optionally, if needed, load the value from the server. If one property is specified its value will be returned to the output.",
1211
Category = CmdletHelpCategory.Base,
1312
OutputType = typeof(ClientObject),

Commands/Base/GetStoredCredential.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace SharePointPnP.PowerShell.Commands.Base
77
{
88
[Cmdlet("Get", "PnPStoredCredential")]
9-
[CmdletAlias("Get-SPOStoredCredential")]
109
[CmdletHelp("Returns a stored credential from the Windows Credential Manager",
1110
Category = CmdletHelpCategory.Base)]
1211
[CmdletExample(Code = "PS:> Get-SPOnlineStoredCredential -Name O365",
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
using Microsoft.SharePoint.Client;
2+
using System;
3+
4+
namespace SharePointPnP.PowerShell.Commands.Base.PipeBinds
5+
{
6+
public sealed class UserPipeBind
7+
{
8+
private readonly int _id;
9+
private readonly string _login;
10+
private readonly User _user;
11+
12+
public UserPipeBind()
13+
{
14+
_id = 0;
15+
_login = null;
16+
_user = null;
17+
}
18+
19+
public UserPipeBind(int id)
20+
{
21+
_id = id;
22+
}
23+
24+
public UserPipeBind(string id)
25+
{
26+
if (!int.TryParse(id, out _id))
27+
{
28+
_login = id;
29+
}
30+
}
31+
32+
public UserPipeBind(User user)
33+
{
34+
_user = user;
35+
}
36+
37+
public int Id => _id;
38+
39+
public string Login => _login;
40+
41+
public User User => _user;
42+
}
43+
}

Commands/Base/SetContext.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Base
66
{
77
[Cmdlet(VerbsCommon.Set, "PnPContext")]
8-
[CmdletAlias("Set-SPOContext")]
98
[CmdletHelp("Sets the Client Context to use by the cmdlets",
109
Category = CmdletHelpCategory.Base)]
1110
[CmdletExample(

Commands/Base/SetTraceLog.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
namespace SharePointPnP.PowerShell.Commands.Base
77
{
88
[Cmdlet(VerbsCommon.Set, "PnPTraceLog")]
9-
[CmdletAlias("Set-SPOTraceLog")]
109
[CmdletHelp("Defines if tracing should be turned on. PnP Core, which is the foundation of these cmdlets uses the standard Trace functionality of .NET. With this cmdlet you can turn capturing of this trace to a log file on or off.",
1110
Category = CmdletHelpCategory.Base)]
1211
[CmdletExample(

Commands/Branding/AddCustomAction.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
using OfficeDevPnP.Core.Entities;
44
using SharePointPnP.PowerShell.CmdletHelpAttributes;
55
using SharePointPnP.PowerShell.Commands.Enums;
6+
using SharePointPnP.PowerShell.Commands.Base.PipeBinds;
7+
using System;
8+
using Newtonsoft.Json;
69

710
namespace SharePointPnP.PowerShell.Commands.Branding
811
{
912
[Cmdlet(VerbsCommon.Add, "PnPCustomAction")]
10-
[CmdletAlias("Add-SPOCustomAction")]
1113
[CmdletHelp("Adds a custom action to a web", Category = CmdletHelpCategory.Branding)]
1214
[CmdletExample(Code = @"$cUIExtn = ""<CommandUIExtension><CommandUIDefinitions><CommandUIDefinition Location=""""Ribbon.List.Share.Controls._children""""><Button Id=""""Ribbon.List.Share.GetItemsCountButton"""" Alt=""""Get list items count"""" Sequence=""""11"""" Command=""""Invoke_GetItemsCountButtonRequest"""" LabelText=""""Get Items Count"""" TemplateAlias=""""o1"""" Image32by32=""""_layouts/15/images/placeholder32x32.png"""" Image16by16=""""_layouts/15/images/placeholder16x16.png"""" /></CommandUIDefinition></CommandUIDefinitions><CommandUIHandlers><CommandUIHandler Command=""""Invoke_GetItemsCountButtonRequest"""" CommandAction=""""javascript: alert('Total items in this list: '+ ctx.TotalListItems);"""" EnabledScript=""""javascript: function checkEnable() { return (true);} checkEnable();""""/></CommandUIHandlers></CommandUIExtension>""
1315
@@ -60,7 +62,13 @@ public class AddCustomAction : PnPWebCmdlet
6062

6163
[Parameter(Mandatory = false, HelpMessage = "The scope of the CustomAction to add to. Either Web or Site; defaults to Web. 'All' is not valid for this command.")]
6264
public CustomActionScope Scope = CustomActionScope.Web;
65+
#if !ONPREMISES
66+
[Parameter(Mandatory = false, HelpMessage = "The Client Side Component Id of the custom action")]
67+
public GuidPipeBind ClientSideComponentId;
6368

69+
[Parameter(Mandatory = false, HelpMessage = "The Client Side Component Properties of the custom action. Specify values as a json string : \"{Property1 : 'Value1', Property2: 'Value2'}\"")]
70+
public string ClientSideComponentProperties;
71+
#endif
6472
protected override void ExecuteCmdlet()
6573
{
6674
var permissions = new BasePermissions();
@@ -85,9 +93,20 @@ protected override void ExecuteCmdlet()
8593
Sequence = Sequence,
8694
Title = Title,
8795
Url = Url,
88-
Rights = permissions
96+
Rights = permissions,
8997
};
9098

99+
#if !ONPREMISES
100+
if(ClientSideComponentId.Id != Guid.Empty)
101+
{
102+
ca.ClientSideComponentId = ClientSideComponentId.Id;
103+
}
104+
if(!string.IsNullOrEmpty(ClientSideComponentProperties))
105+
{
106+
ca.ClientSideComponentProperties = ClientSideComponentProperties;
107+
}
108+
#endif
109+
91110
switch (Scope)
92111
{
93112
case CustomActionScope.Web:

Commands/Branding/AddJavaScriptBlock.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Branding
88
{
99
[Cmdlet(VerbsCommon.Add, "PnPJavaScriptBlock")]
10-
[CmdletAlias("Add-SPOJavaScriptBlock")]
1110
[CmdletHelp("Adds a link to a JavaScript snippet/block to a web or site collection",
1211
DetailedDescription = "Specify a scope as 'Site' to add the custom action to all sites in a site collection.",
1312
Category = CmdletHelpCategory.Branding)]

Commands/Branding/AddJavaScriptLink.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Branding
88
{
99
[Cmdlet(VerbsCommon.Add, "PnPJavaScriptLink")]
10-
[CmdletAlias("Add-SPOJavaScriptLink")]
1110
[CmdletHelp("Adds a link to a JavaScript file to a web or sitecollection",
1211
Category = CmdletHelpCategory.Branding)]
1312
[CmdletExample(Code = "PS:> Add-PnPJavaScriptLink -Name jQuery -Url https://code.jquery.com/jquery.min.js -Sequence 9999 -Scope Site",

Commands/Branding/AddNavigationNode.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Branding
88
{
99
[Cmdlet(VerbsCommon.Add, "PnPNavigationNode")]
10-
[CmdletAlias("Add-SPONavigationNode")]
1110
[CmdletHelp("Adds a menu item to either the quicklaunch or top navigation",
1211
Category = CmdletHelpCategory.Branding)]
1312
[CmdletExample(

Commands/Branding/DisableResponsiveUI.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Branding
66
{
77
[Cmdlet(VerbsLifecycle.Disable, "PnPResponsiveUI")]
8-
[CmdletAlias("Disable-SPOResponsiveUI")]
98
[CmdletHelp("Disables the PnP Responsive UI implementation on a classic SharePoint Site", Category = CmdletHelpCategory.Branding)]
109
[CmdletExample(Code = "PS:> Disable-PnPResponsiveUI",
1110
Remarks = @"If enabled previously, this will remove the PnP Responsive UI from a site.",

Commands/Branding/EnableResponsiveUI.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Branding
66
{
77
[Cmdlet(VerbsLifecycle.Enable, "PnPResponsiveUI")]
8-
[CmdletAlias("Enable-SPOResponsiveUI")]
98
[CmdletHelp("Enables the PnP Responsive UI implementation on a classic SharePoint Site", Category = CmdletHelpCategory.Branding)]
109
[CmdletExample(
1110
Code="PS:> Enable-PnPResponsiveUI",

Commands/Branding/GetCustomAction.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace SharePointPnP.PowerShell.Commands.Branding
1111
{
1212
[Cmdlet(VerbsCommon.Get, "PnPCustomAction")]
13-
[CmdletAlias("Get-SPOCustomAction")]
1413
[CmdletHelp("Returns all or a specific custom action(s)",
1514
Category = CmdletHelpCategory.Branding,
1615
OutputType = typeof(List<UserCustomAction>),

Commands/Branding/GetHomepage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Branding
66
{
77
[Cmdlet(VerbsCommon.Get, "PnPHomePage")]
8-
[CmdletAlias("Get-SPOHomePage")]
98
[CmdletHelp("Returns the URL to the home page",
109
Category = CmdletHelpCategory.Branding,
1110
OutputType = typeof(string))]

Commands/Branding/GetJavaScriptLink.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace SharePointPnP.PowerShell.Commands.Branding
99
{
1010
[Cmdlet(VerbsCommon.Get, "PnPJavaScriptLink")]
11-
[CmdletAlias("Get-SPOJavaScriptLink")]
1211
[CmdletHelp("Returns all or a specific custom action(s) with location type ScriptLink",
1312
Category = CmdletHelpCategory.Branding,
1413
OutputType = typeof(UserCustomAction),

Commands/Branding/GetMasterPage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands
66
{
77
[Cmdlet(VerbsCommon.Get, "PnPMasterPage")]
8-
[CmdletAlias("Get-SPOMasterPage")]
98
[CmdletHelp("Returns the URLs of the default Master Page and the custom Master Page.",
109
Category = CmdletHelpCategory.Branding)]
1110
public class GetMasterPage : PnPWebCmdlet

Commands/Branding/GetTheme.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Branding
88
{
99
[Cmdlet(VerbsCommon.Get, "PnPTheme")]
10-
[CmdletAlias("Get-SPOTheme")]
1110
[CmdletHelp("Returns the current theme/composed look of the current web.",
1211
Category = CmdletHelpCategory.Branding,
1312
OutputType = typeof(OfficeDevPnP.Core.Entities.ThemeEntity))]

Commands/Branding/RemoveCustomAction.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace SharePointPnP.PowerShell.Commands.Branding
99
{
1010
[Cmdlet(VerbsCommon.Remove, "PnPCustomAction", ConfirmImpact = ConfirmImpact.High, SupportsShouldProcess = true)]
11-
[CmdletAlias("Remove-SPOCustomAction")]
1211
[CmdletHelp("Removes a custom action",
1312
Category = CmdletHelpCategory.Branding)]
1413
[CmdletExample(Code = @"PS:> Remove-PnPCustomAction -Identity aa66f67e-46c0-4474-8a82-42bf467d07f2", Remarks = @"Removes the custom action with the id 'aa66f67e-46c0-4474-8a82-42bf467d07f2'.", SortOrder = 1)]

Commands/Branding/RemoveJavaScriptLink.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
namespace SharePointPnP.PowerShell.Commands.Branding
1111
{
1212
[Cmdlet(VerbsCommon.Remove, "PnPJavaScriptLink", SupportsShouldProcess = true)]
13-
[CmdletAlias("Remove-SPOJavaScriptLink")]
1413
[CmdletHelp("Removes a JavaScript link or block from a web or sitecollection",
1514
Category = CmdletHelpCategory.Branding)]
1615
[CmdletExample(Code = "PS:> Remove-PnPJavaScriptLink -Name jQuery",

Commands/Branding/RemoveNavigationNode.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Branding
88
{
99
[Cmdlet(VerbsCommon.Remove, "PnPNavigationNode", SupportsShouldProcess = true)]
10-
[CmdletAlias("Remove-SPONavigationNode")]
1110
[CmdletHelp("Removes a menu item from either the quicklaunch or top navigation",
1211
Category = CmdletHelpCategory.Branding)]
1312
[CmdletExample(Code = @"PS:> Remove-PnPNavigationNode -Title Recent -Location QuickLaunch",

Commands/Branding/SetHomepage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Branding
66
{
77
[Cmdlet(VerbsCommon.Set, "PnPHomePage")]
8-
[CmdletAlias("Set-SPOHomePage")]
98
[CmdletHelp("Sets the home page of the current web.",
109
Category = CmdletHelpCategory.Branding)]
1110
[CmdletExample(

Commands/Branding/SetMasterPage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace SharePointPnP.PowerShell.Commands.Branding
88
{
99
[Cmdlet(VerbsCommon.Set, "PnPMasterPage")]
10-
[CmdletAlias("Set-SPOMasterPage")]
1110
[CmdletHelp("Sets the default master page of the current web.",
1211
Category = CmdletHelpCategory.Branding)]
1312
[CmdletExample(

Commands/Branding/SetMinimalDownloadStrategy.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.Branding
66
{
77
[Cmdlet(VerbsCommon.Set, "PnPMinimalDownloadStrategy")]
8-
[CmdletAlias("Set-SPOMinimalDownloadStrategy")]
98
[CmdletHelp("Activates or deactivates the minimal downloading strategy.",
109
Category = CmdletHelpCategory.Branding)]
1110
[CmdletExample(

Commands/Branding/SetTheme.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
namespace SharePointPnP.PowerShell.Commands.Branding
1010
{
1111
[Cmdlet(VerbsCommon.Set, "PnPTheme")]
12-
[CmdletAlias("Set-SPOTheme")]
1312
[CmdletHelp("Sets the theme of the current web.", DetailedDescription = " Sets the theme of the current web, if any of the attributes is not set, that value will be set to null", Category = CmdletHelpCategory.Branding)]
1413
[CmdletExample(Code = @"PS:> Set-PnPTheme", Remarks = "Removes the current theme and resets it to the default.", SortOrder = 1)]
1514
[CmdletExample(Code = @"PS:> Set-PnPTheme -ColorPaletteUrl /_catalogs/theme/15/company.spcolor", SortOrder = 2)]

Commands/ContentTypes/AddContentType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace SharePointPnP.PowerShell.Commands.ContentTypes
66
{
77
[Cmdlet(VerbsCommon.Add, "PnPContentType")]
8-
[CmdletAlias("Add-SPOContentType")]
98
[CmdletHelp("Adds a new content type",
109
Category = CmdletHelpCategory.ContentTypes,
1110
OutputType = typeof(ContentType),

0 commit comments

Comments
 (0)