Skip to content

Instantly share code, notes, and snippets.

{
"$schema": {
"description": "schema of the JSON",
},
"debugMode": {
"description": "Is this JSON in debug mode?",
},
"elmType": {
"description": "The type of element to create",
},
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"txtContent": "@currentField",
"style": {
"background-color": {
"operator": "?",
"operands": [
{
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"txtContent": "@currentField",
"attributes": {
"class": {
"operator": "?",
"operands": [
{
"This is a test." | Out-File ([Environment]::GetFolderPath("Desktop") + "\test.txt")
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"txtContent": {
"operator": "+",
"operands": [
{
"operator": "toString()",
"operands": [
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"txtContent": "@currentField",
"attributes": {
"class": {
"operator": "?",
"operands": [
{
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"children": [
{
"elmType": "span",
"style": {
"padding-right": "8px"
},
{
"$schema": "http://columnformatting.sharepointpnp.com/columnFormattingSchema.json",
"debugMode": true,
"elmType": "div",
"attributes": {
"class": {
"operator": "?",
"operands": [
{
"operator": "==",
@mrik23
mrik23 / EOL-RemoveAllMailboxFolderPermissions.ps1
Created December 12, 2017 11:32
Exchange Online PowerShell script to remove added permissions on all foldders of an user's mailbox. Can be used with Exchange Online PowerShell module with MFA.
<#
.SYNOPSIS
EOL-RemoveAllMailboxFolderPermissions.ps1
.DESCRIPTION
A script to remove permissions from all folders present in a particular user mailbox.
.OUTPUTS
Console output for progress.
@mrik23
mrik23 / Windows10-Unbloating-v1.ps1
Created December 27, 2017 12:52
PowerShell script to remove bloatware shipped in Windows 10 and disabled unwanted features. Tested on version 1709.
# Windows 10 Unbloating
# Inspired by:
# https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/remove-default-apps.ps1
# https://github.com/Disassembler0/Win10-Initial-Setup-Script/blob/master/Win10.ps1
# Uninstall default Microsoft applications
$MsftBloatApps = @(
"Microsoft.3DBuilder"
"Microsoft.BingFinance"
"Microsoft.BingNews"