This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPOnline -ClientId "<AppId>" -CertificatePath "<C:\...\Cert\cerificate.pfx>" ` | |
-CertificatePassword (ConvertTo-SecureString -AsPlainText "<pw>" -Force) ` | |
-Url "https://<tenant>.sharepoint.com/sites/TheCoolTeam" -Tenant "<id>" | |
$token = Get-PnPGraphAccessToken | |
# Create header | |
$header = @{ | |
Authorization = "Bearer $($token)" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPOnline https://<tenant>.sharepoint.com/sites/<site> | |
Get-PnPListItem -List "User Information List" -Id 7 # Me | |
# -OR- # | |
$userEmail = "paul.bullock@mytenant.co.uk" | |
$CamlQuery = @" | |
<View> | |
<Query> | |
<Where> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$sp13Conn = Connect-PnPOnline http://portal2013/en -ReturnConnection | |
Export-PnPClientSidePageMapping ` | |
-CustomPageLayoutMapping ` | |
-PublishingPage "Our-New-IT-Suite-Is-Mint.aspx" ` | |
-Folder "C:\temp\Blog" ` | |
-Connection $sp13Conn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<MetaData> | |
<Field Name="Title" TargetFieldName="" Functions="" /> | |
<Field Name="IntranetKeywords" TargetFieldName="" Functions="" /> | |
<Field Name="PublishingIsFurlPage" TargetFieldName="" Functions="" /> | |
<Field Name="IntranetContentAuthor" TargetFieldName="" Functions="" /> | |
<Field Name="IntranetContentPublishingDate" TargetFieldName="" Functions="" /> | |
<!-- Managed Metadata field --> | |
<Field Name="IntranetContentCategory" TargetFieldName="IntranetContentCategoryMulti" Functions="" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ConvertTo-PnPClientSidePage -Identity "Our-New-IT-Suite-Is-Mint.aspx" -PublishingPage ` | |
-TargetConnection $spOnlineConn -Connection $sp13Conn ` | |
-Overwrite ` | |
-PageLayoutMapping C:\temp\Demo\onprem-news-mapping.xml ` | |
-TermMappingFile C:\temp\Demo\termmapping.csv ` | |
-LogType Console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<pnp:RegionalSettings AdjustHijriDays="0" AlternateCalendarType="None" CalendarType="Gregorian" Collation="25" FirstDayOfWeek="Monday" FirstWeekOfYear="2" LocaleId="2057" ShowWeeks="false" Time24="true" TimeZone="2" WorkDayEndHour="5:00PM" WorkDays="62" WorkDayStartHour="8:00AM" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connect-PnPOnline https://tenant.sharepoint.com/sites/LearningPortal/ | |
Set-PnPClientSidePage -Identity Custom-Pack-Content -LayoutType SingleWebPartAppPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"Id": "a8cbac83-f7e8-45ff-a4a6-6b04f31a5745", | |
"Title": "Modern SharePoint Editing Experience", | |
"Image": "images/playlists/share_and_coauthor.png", | |
"LevelId": "a5522c84-14c5-4b36-b28e-9c6364837c98", | |
"AudienceId": "71ec9903-1498-49e2-8514-428e35617b18", | |
"TechnologyId": "a97cb2db-55fb-43ec-8ded-67909ce1c61f", | |
"SubjectId": "", | |
"Source": "Microsoft", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[System.Guid]::NewGuid().Guid | clip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Categories": [ | |
{ | |
"Id": "618da7fa-0ed2-4653-9dfd-271c3bbe3a44", | |
"Name": "Products", | |
"Image": "", | |
"TechnologyId": "", | |
"SubjectId": "", | |
"Source": "Microsoft", | |
"SubCategories": [ | |