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
"files.exclude": { | |
"**/.git": true, | |
"**/.svn": true, | |
"**/.hg": true, | |
"**/CVS": true, | |
"**/.DS_Store": true, | |
//Exclude these spfx locations | |
"**/.vscode": true, | |
"**/node_modules": true, |
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
$startingDir = Get-Location | |
Get-ChildItem | ?{ $_.PSIsContainer } | Select-Object FullName | | |
Foreach-Object { | |
Set-Location $_.FullName | |
git config --get remote.origin.url | |
} | |
Set-Location $startingDir |
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
# Run command as administrator | |
wmic product list |
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
$startingPoint = Get-Location | |
# Set the Repos here | |
$dirList = dir -Directory | |
$dirList | Foreach-Object { | |
Write-Host 'Updating... ' $_ | |
# Go to sub folder |
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
# See full script at | |
# https://github.com/CaPa-Creative-Ltd/SharePoint-Recipes/blob/master/Recipes/Document-Management/Remove-DeleteOption.ps1 | |
Connect-PnPOnline -Url "https://<tenant>.sharepoint.com" | |
$list = Get-PnPList -Identity "<list or library>" | |
$list.AllowDeletion = $false | |
$list.Update() | |
Invoke-PnPQuery |
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
# See full script at: | |
# https://github.com/CaPa-Creative-Ltd/SharePoint-Recipes/blob/master/Recipes/Document-Management/Set-LowerSiteMembersPermissions.ps1 | |
Connect-PnPOnline -Url "https://<tenant>.sharepoint.com" | |
$membersGroup = Get-PnPGroup -AssociatedMemberGroup | |
Set-PnPGroupPermissions -Identity $membersGroup -RemoveRole "Edit" -AddRole "Contribute" | |
Write-Host "Done! :-)" -ForegroundColor Green |
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
{ | |
"schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", | |
"additionalRowClass": "=if([$PromotedState] > 0, 'sp-field-severity--good', '')" | |
} |
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
{ | |
"$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"display": "inline-block", | |
"padding": "0 4px" | |
}, |
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
# Simple script to get the installed languages in SharePoint Online | |
Connect-PnPOnline -Url "https://<mytenant>.sharepoint.com" | |
(Get-PnPWeb -Includes RegionalSettings.InstalledLanguages).RegionalSettings.InstalledLanguages |
OlderNewer