This file contains hidden or 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
param ( | |
[Parameter(Mandatory=$true)] | |
$Url, | |
$Cred, | |
[switch]$UseWebLogin | |
) | |
if ($UseWebLogin.ToBool() -eq $false) | |
{ | |
if ($Cred -eq $null) |
This file contains hidden or 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
<style> | |
.accordion { | |
background-color: #eee; | |
color: #444; | |
cursor: pointer; | |
padding: 18px; | |
width: 100%; | |
text-align: left; |
This file contains hidden or 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
<Field | |
ID="{1012e6c5-2eb5-44cf-9f73-1ed8a584d38b}" | |
Name="DocumentTextFromOCR" | |
DisplayName="Document Text from OCR" | |
Description="" | |
StaticName="DocumentTextFromOCR" | |
Group="Demo" | |
Type="Note" | |
NumLines="10" | |
UnlimitedLengthInDocumentLibrary="TRUE" |
This file contains hidden or 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
$field = Get-PnPField -List "My List" -Identity "Target Date" | |
$field.SetShowInEditForm($false) | |
$field.Update() | |
Invoke-PnPQuery |
This file contains hidden or 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
# 1) unseal the content type for folders in the library | |
$ct = Get-PnPContentType -Identity "Folder" -List "Documents" | |
$ct.Sealed = $false | |
$ct.Update($false) # using $true in this case will throw an execption | |
Invoke-PnPQuery | |
# 2) add the description field (must already exist) to the Folder content type |
This file contains hidden or 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
# get the content type from the library | |
$ct = Get-PnPContentType -Identity "Folder" -List "Documents" | |
# get the fieldlinks collection from the content type | |
$fieldLinks = $ct.FieldLinks | |
(Get-PnPContext).Load($fieldLinks) | |
Invoke-PnPQuery | |
# get the title field from the site columns | |
$titleField = Get-PnPField -Identity "Title" |
This file contains hidden or 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
<script type="text/javascript"> | |
$( document ).ready(function() { | |
$("#overview04").parent().hide(); | |
}); | |
</script> | |
This file contains hidden or 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
$field = Get-PnPField -List "Documents" -Identity "Users" -Includes FieldTypeKind | |
$field.FieldTypeKind = [Microsoft.SharePoint.Client.FieldType]::User | |
$field.Update() | |
Invoke-PnPQuery |
This file contains hidden or 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
Write-Host | |
Write-Host "Groups Overview" | |
Write-Host "===============" | |
Write-Host | |
$groups = Get-PnPGroup | |
foreach ($group in $groups) | |
{ |