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
#Azure PowerShell v2 | |
#Check documentation https://docs.microsoft.com/en-us/powershell/azure/active-directory/install-adv2?view=azureadps-2.0 | |
Import-Module AzureRM | |
$credential = Get-Credential | |
Login-AzureRmAccount -Credential $credential | |
#Set variables | |
$location = "eastus" #Find the choice of location with 'Get-AzureRmLocation | select location' | |
$rgName = "myResourceGroup" + (Get-Random -Maximum 99).ToString() |
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
<# | |
Script to retrieve external users that have been added via modern sharing experience on files and folders (with verification code to email). | |
These users are not retrieved with Get-SPOExternalUser cmdlet and not added as guest users in Azure AD. | |
Requires: SharePoint Online Management Shell > https://www.microsoft.com/en-us/download/details.aspx?id=35588 | |
#> | |
Connect-SPOService -Url https://<tenantName>-admin.sharepoint.com |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"debugMode": true, | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"padding-right": "8px" | |
}, |
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
Set-CASMailbox -Identity someone@contoso.com -PopEnabled $False -ImapEnabled $False -MAPIEnabled $False -OWAEnabled $False -ActiveSyncEnabled $False -OWAforDevicesEnabled $false -EWSEnabled $False -EwsBlockList @{Add="Outlook-iOS/*","Outlook-Android/*"} | |
### Re-enable all protocols ### | |
#Set-CASMailbox -Identity someone@contoso.com -PopEnabled $true -ImapEnabled $true -MAPIEnabled $true -OWAEnabled $true -ActiveSyncEnabled $true -OWAforDevicesEnabled $true -EWSEnabled $true -EwsBlockList @{Remove="Outlook-iOS/*","Outlook-Android/*"} -EwsApplicationAccessPolicy $null |
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
<# | |
.SYNOPSIS | |
EOL-RemoveAllMailboxFolderPermissions.ps1 | |
.DESCRIPTION | |
A script to remove permissions from all folders present in a particular user mailbox. | |
.OUTPUTS | |
Console output for progress. |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"debugMode": true, | |
"elmType": "div", | |
"attributes": { | |
"class": { | |
"operator": "?", | |
"operands": [ | |
{ | |
"operator": "==", |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"debugMode": true, | |
"elmType": "div", | |
"children": [ | |
{ | |
"elmType": "span", | |
"style": { | |
"padding-right": "8px" | |
}, |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"debugMode": true, | |
"elmType": "div", | |
"txtContent": "@currentField", | |
"attributes": { | |
"class": { | |
"operator": "?", | |
"operands": [ | |
{ |
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
"This is a test." | Out-File ([Environment]::GetFolderPath("Desktop") + "\test.txt") |
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": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json", | |
"debugMode": true, | |
"elmType": "div", | |
"txtContent": "@currentField", | |
"attributes": { | |
"class": { | |
"operator": "?", | |
"operands": [ | |
{ |