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 ) […]


VCSA 6 CLI Install

1. Make sure a DNS A and PTR record exists for the VC and the ESXi hosts. 2. Create a installation parameter file. E.g. “example_embedded.json” 3. Run “vcsa-deploy <your_json_file_location_and_name>” E.g. “vcsa-deploy c:/temp/example_embedded.json” 4. Wait (20 a 30min) fot the message ” Login as: Administrator@vsphere.local” appears


Windows 8 Maintenance jobs

Windows 8 has some new maintenance jobs. These are great when you have an physical machine. But not when you’re using Citrix PVS to stream the OS.


RES Training Notes

Prerequisites RES: .NET 2 only for Cached User Settings is .NET 4 required. Tips Always try to reproduce an issue in an empty database. Always configure re-branding. Best Practices: Split database is new production environments, keep the default name the wizard returns “<name pri db>_2nd”. Reserve a Named Licenses for […]


Optimize StoreFront 2.x

Socket Pooling. In StoreFront we need to configgure socket polling in the config files, while in Web Interface we could configure this in the console. Storefront maintaines a pool of sockets instead of creating a socket each time a new user connects, when enabled it will give a better performance for […]