Skip to content

Instantly share code, notes, and snippets.

View 1RedOne's full-sized avatar

Stephen Owen 1RedOne

View GitHub Profile
@1RedOne
1RedOne / gist:44ce904e89b3da7d3a4eaed65be1cced
Created January 9, 2018 14:27 — forked from anonymous/gist:8078b779cdc84b09c05e66cfefff9550
A GUI-based tool that will search a given directory for all EXE's and DLL's and return file name, description, and version number.
$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>
$keys = $PSCmdlet.MyInvocation.BoundParameters.Keys
foreach ($key in $keys)
{
$keyValue = @{
$true = ",$key"
$false = "?patchFields=$key"
}
$queryParams += $keyValue.($PSCmdlet.MyInvocation.BoundParameters.ContainsKey($key))
}
#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">
<#
.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