PowerShell


Generate an Let’s Encrypt certificate what can be used on the NetScaler 1

Edit 07-04-2017: Check out my new and updated version! I’m trying to create an (PowerShell) script to automate the Let’s Encrypt certificate creation. Specifically for the Citrix NetScaler. Currently still Work In Progress… It’s not yet finished. The prerequisite is that you have a configured NetScaler (http) Content Switch vServer. […]


OptimizeEndpoint

I’ve been using my “Windows optimize script” for a while now. Most issues are resolved and it’s been tested thoroughly. So I thought why not give it back to the community, so here it is: OptimizeEndpoint. It can be used to optimize Windows 7, 8, 8.1 and 10. (It can […]


Powershell Gui Basic

#PUT XAML BELOW between the @” “@ $inputXML = @” <Window x:Class=”WpfApplication1.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:WpfApplication1″ mc:Ignorable=”d” Title=”MainWindow” Height=”350″ Width=”525″> <Grid> </Grid> </Window> “@ $inputXML = $inputXML -replace ‘mc:Ignorable=”d”‘,” -replace “x:N”,’N’ -replace ‘^<Win.*’, ‘<Window’ [void][System.Reflection.Assembly]::LoadWithPartialName(‘presentationframework’) [xml]$XAML = $inputXML #Read XAML $reader=(New-Object System.Xml.XmlNodeReader $xaml) try{ $Form=[Windows.Markup.XamlReader]::Load( $reader ) }catch [System.Management.Automation.MethodInvocationException] […]


Basic PowerShell start

<# .SYNOPSIS A summary .DESCRIPTION A more in depth description .NOTES Additional Notes File Name : xx.ps1 Author : First Last – e@mail.com Requires : … .LINK A hyper link .EXAMPLE The first example .EXAMPLE The second example .PARAMETER xxx text #> [CmdletBinding()] param ( [Parameter(Position=0, Mandatory=$true, ValueFromPipeline=$true)][int64] $xxx=42 ) […]