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 | |
Modifies the web.config file for all servers for specific SharePoint web application. | |
.Description | |
Modifies the web.config file for all servers for specific SharePoint web application. | |
.Example | |
Add-SPCORSOrigin -Url http://domain.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
#ERASE ALL THIS AND PUT XAML BELOW between the @" "@ | |
$inputXML = @" | |
<Window | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
mc:Ignorable="d" | |
Title="Configuration Manager Content Import/Export" Height="564.345" Width="502.66"> |
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
$keys = $PSCmdlet.MyInvocation.BoundParameters.Keys | |
foreach ($key in $keys) | |
{ | |
$keyValue = @{ | |
$true = ",$key" | |
$false = "?patchFields=$key" | |
} | |
$queryParams += $keyValue.($PSCmdlet.MyInvocation.BoundParameters.ContainsKey($key)) | |
} |
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
$inputXML = @" | |
<Window x:Class="FileVersionChecker.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:FileVersionChecker" | |
mc:Ignorable="d" | |
Title="FileVersionChecker" Height="350" Width="525"> | |
<Grid> |