<#============================================================================================= Script by : Leo Nguyen Website : www.msgang.com Description : Activate Microsoft products for FREE without cracking tools Script Highlights: ~~~~~~~~~~~~~~~~~ #. Activate Microsoft products for FREE without cracking tools. #. Download/ Install Microsoft Office (C2R) all versions. ============================================================================================#> # Request run with admin right if (-not([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Write-Warning "You need to have Administrator rights to run this script!`nPlease re-run this script as an Administrator in an elevated powershell prompt!" break } # Load .NET assemblies into Windows PowerShell Add-Type -AssemblyName PresentationFramework, WindowsFormsIntegration, PresentationCore # Place your xaml code from Visual Studio in here string (between @ symbols) # $xamlinput = @'