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
$database = "master" | |
$root = Get-Item -Path (@{$true="$($database):\content\home"; $false="$($database):\content"}[(Test-Path -Path "$($database):\content\home")]) | |
$periodOptions = [ordered]@{Before=1;After=2;} | |
$maxDaysOptions = [ordered]@{"-- Skip --"=[int]::MaxValue;30=30;90=90;120=120;365=365;} | |
$settings = @{ | |
Title = "Report Filter" | |
OkButtonName = "Proceed" | |
CancelButtonName = "Abort" | |
Description = "Filter the results for items updated on or after the specified date by specified user." |
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
function Test-ItemIsDictionaryDomain { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true, ValueFromPipeline = $true, Position=0 )] | |
[Item]$Item | |
) | |
begin { | |
Write-Verbose "Cmdlet Test-ItemIsDictionaryDomain - Begin" | |
} |
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
function Get-DictionaryDomain { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true, ValueFromPipeline = $true, Position=0 )] | |
[Item]$Root | |
) | |
begin { | |
Import-Function Test-ItemIsDictionaryDomain | |
Write-Verbose "Cmdlet Get-DictionaryDomain - Begin" |
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
Import-Function Get-DictionaryDomain | |
function Invoke-ModuleScriptBody { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory = $true, Position = 0 )] | |
[Item]$Site, | |
[Parameter(Mandatory = $true, Position = 1 )] | |
[Item[]]$TenantTemplates |
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
"presets": [ | |
{ | |
"name": "Demo Preset", | |
"conversion":[ | |
{ | |
"type":"colorProfile", | |
"value":"sRGB" | |
}, | |
{ | |
"type":"fileExtension", |
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
<setting name="MySetting" value="New Value" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/> |
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
<setting name="MySetting" value="Setting Value" xdt:Transform="Remove" xdt:Locator="Match(name)"/> |
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
<add name="MySetting" value="Setting Value" xdt:Transform="Insert"/> |