Skip to content

Commit

Permalink
Merge branch 'dev' into feature/AddWarning-Get-PnPFlow-RequiredPermis…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
gautamdsheth authored Oct 28, 2024
2 parents 8409b05 + 6bfa732 commit 05b0642
Show file tree
Hide file tree
Showing 10 changed files with 3,510 additions and 3,479 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
- Added `Get-PnPDeletedFlow` cmdlet to retrieve a list of flows which are soft deleted. [#4396](https://github.com/pnp/powershell/pull/4396)
- Added `Restore-PnPFlow` cmdlet which allows for undeleting a flow within 21 days of deletion. [#4415](https://github.com/pnp/powershell/pull/4415)
- Added `-ExcludeDeprecated` to `Export-PnpTaxonomy` which allows for deprecated terms to be excluded from the export [#4053](https://github.com/pnp/powershell/pull/4053)
- Added `-HidePeoplePreviewingFiles` to `Set-PnPSite` which allows for hiding the people previewing files feature on a site [#4416](https://github.com/pnp/powershell/pull/4416)

### Changed

Expand Down
22 changes: 11 additions & 11 deletions documentation/Add-PnPPage.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add-PnPPage [-Name] <String> [-LayoutType <PageLayoutType>]
```

## DESCRIPTION
Creates a new page. The page will be located inside the Site Pages library of the site currently connected to.
Creates a new page. The page will be located inside the Site Pages library of the site currently connected to. If the library does not exist yet, tries to ensure it is created.

## EXAMPLES

Expand All @@ -32,21 +32,21 @@ Creates a new page. The page will be located inside the Site Pages library of th
Add-PnPPage -Name "NewPage"
```

Creates a new page named 'NewPage'
Creates a new page named 'NewPage'. The resulting file will accordingly be named 'NewPage.aspx'. If a file with that name already exists, executing the commandlet will fail.

### EXAMPLE 2
```powershell
Add-PnPPage -Name "NewPage" -Title "Welcome to my page"
```

Creates a new page NewPage.aspx with the title as provided
Creates a new page NewPage.aspx with the title as provided.

### EXAMPLE 3
```powershell
Add-PnPPage -Name "NewPage" -ContentType "MyPageContentType"
```

Creates a new page named 'NewPage' and sets the content type to the content type specified
Creates a new page named 'NewPage' and sets the content type to the content type specified.

### EXAMPLE 4
```powershell
Expand All @@ -67,14 +67,14 @@ Creates a new page named 'NewPage' under 'Folder' folder and saves as a template
Add-PnPPage -Name "NewPage" -HeaderLayoutType ColorBlock
```

Creates a new page named 'NewPage' using the ColorBlock header layout
Creates a new page named 'NewPage' using the ColorBlock header layout.

### EXAMPLE 7
```powershell
Add-PnPPage -Name "NewPage" Article -ScheduledPublishDate (Get-Date).AddHours(1)
```

Creates a new page named 'NewPage' using the article layout and schedule it to be published in 1 hour from now
Creates a new page named 'NewPage' using the article layout and schedule it to be published in 1 hour from now.

### EXAMPLE 8
```powershell
Expand Down Expand Up @@ -116,7 +116,7 @@ Accept wildcard characters: False
```
### -CommentsEnabled
Enables or Disables the comments on the page
Enables or Disables the comments on the page.
```yaml
Type: SwitchParameter
Expand Down Expand Up @@ -144,7 +144,7 @@ Accept wildcard characters: False
```
### -HeaderLayoutType
Type of layout used for the header
Type of layout used for the header.
```yaml
Type: PageHeaderLayoutType
Expand Down Expand Up @@ -188,12 +188,12 @@ Accept wildcard characters: False
```
### -PromoteAs
Allows to promote the page for a specific purpose (HomePage | NewsPage)
Allows to promote the page for a specific purpose (HomePage | NewsPage).
```yaml
Type: PagePromoteType
Parameter Sets: (All)
Accepted values: None, HomePage, NewsArticle, Template
Accepted values: None, HomePage, NewsArticle

Required: False
Position: Named
Expand Down Expand Up @@ -231,7 +231,7 @@ Accept wildcard characters: False
```
### -Translate
Creates multilingual pages for all the languages specified in the site collection
Creates multilingual pages for all the languages specified in the site collection.
```yaml
Type: SwitchParameter
Expand Down
11 changes: 10 additions & 1 deletion documentation/Connect-PnPOnline.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Connects to the Azure AD with WAM (aka native Windows authentication prompt), ac

WAM is a more secure & faster way of authenticating in Windows OS. It supports Windows Hello, FIDO keys , conditional access policies and more.

### EXAMPLE 9
### EXAMPLE 19
```powershell
$keyStorageflags = [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::MachineKeySet -bor [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]::PersistKeySet
Expand All @@ -294,6 +294,15 @@ See [Security App-only EntraId guidance](https://learn.microsoft.com/sharepoint/

See [X509 key storage flags](https://learn.microsoft.com/dotnet/api/system.security.cryptography.x509certificates.x509keystorageflags) for information on how to configure key storage when creating the certificate.

### EXAMPLE 20
```powershell
Connect-PnPOnline -Url "https://contoso.sharepoint.com" -Credentials "https://contoso.sharepoint.com"
```

Connect to SharePoint using Credentials (username and password) from Credential Manager (Windows) or Keychain (Mac) with the specified name to use to authenticate.

On Windows, this entry needs to be under "Generic Credentials".

## PARAMETERS

### -AccessToken
Expand Down
15 changes: 15 additions & 0 deletions documentation/Set-PnPSite.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -HidePeoplePreviewingFiles
Allows hiding of the presence indicators of users simultaneously editing files.
```yaml
Type: String
Parameter Sets: (All)
Aliases: Url

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Identity
The url of the site collection.
Expand Down
2 changes: 1 addition & 1 deletion pnpframework_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
a53bde3323d9f85fde1c48ddaf83d1c1b8aa724e
a5162c742bae66571d3300df7ab34a5be00eecf2
2 changes: 1 addition & 1 deletion pnppowershell_hash.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8ea601dc0caf56e36d809a7256cf9155bcbf5731
85bf4dc056c3fef4c8b7246c13c451d4e64bc3be
Loading

0 comments on commit 05b0642

Please sign in to comment.