You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ The verb of a cmdlet (get-, add-, etc.) should follow acceptable cmdlet standard
88
88
89
89
## Documentation contributions
90
90
If you want to contribute to cmdlet documentation, please do not make a pull request to modify the actual files in the Documentation folder itself. Those files
91
-
are automatically generated based upon comments in the actual classes. So if you want to modify documentation and or add an example of a cmdlet, navigate to the
91
+
are automatically generated based upon comments in the actual classes. So if you want to modify documentation or add an example of a cmdlet, navigate to the
92
92
corresponding class where the cmdlet is being implemented and add the comments there. An example can for instance be found in
[CmdletExample(Code=@"PS:> Get-PnPTenantSite",Remarks="Returns all site collections",SortOrder=1)]
19
-
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -Url http://tenant.sharepoint.com/sites/projects",Remarks="Returns information about the project site.",SortOrder=2)]
19
+
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -Url http://tenant.sharepoint.com/sites/projects",Remarks="Returns information about the project site.",SortOrder=2)]
20
20
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -Detailed",Remarks="Returns all sites with the full details of these sites",SortOrder=3)]
21
21
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -IncludeOneDriveSites",Remarks="Returns all sites including all OneDrive 4 Business sites",SortOrder=4)]
22
+
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -IncludeOneDriveSites -Filter ""Url -like '-my.sharepoint.com/personal/'""",Remarks="Returns all OneDrive for Business sites.",SortOrder=5)]
23
+
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -WebTemplate SITEPAGEPUBLISHING#0",Remarks="Returns all Communication sites",SortOrder=6)]
24
+
[CmdletExample(Code=@"PS:> Get-PnPTenantSite -Filter ""Url -like 'sales'"" ",Remarks="Returns all sites including 'sales' in the url.",SortOrder=7)]
22
25
publicclassGetTenantSite:PnPAdminCmdlet
23
26
{
24
27
[Parameter(Mandatory=false,HelpMessage="The URL of the site",Position=0,ValueFromPipeline=true)]
@@ -31,13 +34,18 @@ public class GetTenantSite : PnPAdminCmdlet
31
34
[Parameter(Mandatory=false,HelpMessage="By default, not all returned attributes are populated. This switch populates all attributes. It can take several seconds to run. Without this, some attributes will show default values that may not be correct.")]
32
35
publicSwitchParameterDetailed;
33
36
34
-
[Parameter(Mandatory=false,HelpMessage="By default, the OneDrives are not returned. This switch includes all OneDrives. This can take some extra time to run")]
37
+
[Parameter(Mandatory=false,HelpMessage="By default, the OneDrives are not returned. This switch includes all OneDrives.")]
35
38
publicSwitchParameterIncludeOneDriveSites;
36
39
37
-
38
40
[Parameter(Mandatory=false,HelpMessage="When the switch IncludeOneDriveSites is used, this switch ignores the question shown that the command can take a long time to execute")]
39
41
publicSwitchParameterForce;
40
42
43
+
[Parameter(Mandatory=false,HelpMessage="Limit results to a specific web template name.")]
44
+
publicstringWebTemplate;
45
+
46
+
[Parameter(Mandatory=false,HelpMessage="Specifies the script block of the server-side filter to apply. See https://technet.microsoft.com/en-us/library/fp161380.aspx")]
Copy file name to clipboardExpand all lines: Commands/Admin/NewTenantSite.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ public class NewTenantSite : PnPAdminCmdlet
46
46
[Parameter(Mandatory=true,HelpMessage=@"Specifies the user name of the site collection's primary owner. The owner must be a user instead of a security group or an email-enabled security group.")]
47
47
publicstringOwner=string.Empty;
48
48
49
-
[Parameter(Mandatory=false,HelpMessage=@"Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft: http://go.microsoft.com/fwlink/p/?LinkId=242911Id=242911.")]
49
+
[Parameter(Mandatory=false,HelpMessage=@"Specifies the language of this site collection. For more information, see Locale IDs Assigned by Microsoft: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splanguage.lcid.aspx")]
50
50
publicuintLcid=1033;
51
51
52
52
[Parameter(Mandatory=false,HelpMessage=@"Specifies the site collection template type. Use the Get-PnPWebTemplate cmdlet to get the list of valid templates. If no template is specified, one can be added later. The Template and LocaleId parameters must be a valid combination as returned from the Get-PnPWebTemplates cmdlet.")]
Remarks=@"This will set the title of the site collection with the URL 'https://contoso.sharepoint.com' to 'Contoso Website' and disable sharing on this site collection.",SortOrder=1)]
Remarks=@"This will set the title of the site collection with the URL 'https://contoso.sharepoint.com' to 'Contoso Website', set the storage warning level to 8GB and set the storage maximum level to 10GB.",SortOrder=2)]
Remarks=@"This will add [email protected] and [email protected] as additional site collection owners at 'https://contoso.sharepoint.com/sites/sales'.",SortOrder=4)]
[Parameter(Mandatory=false,HelpMessage="Specifies owners to add as site collection adminstrators. Can be both users and groups.")]
59
+
[Parameter(Mandatory=false,HelpMessage="Specifies owner(s) to add as site collection adminstrators. They will be added as additional site collection administrators. Existing administrators will stay. Can be both users and groups.")]
56
60
publicList<string>Owners;
57
61
58
62
[Parameter(Mandatory=false,HelpMessage="Sets the lockstate of a site")]
0 commit comments