Skip to content

Instantly share code, notes, and snippets.

View jheinrichs79's full-sized avatar

Jared Heinrichs jheinrichs79

View GitHub Profile
@jheinrichs79
jheinrichs79 / GVLKs for KMS.txt
Created November 28, 2022 16:48 — forked from ezracb/GVLKs for KMS.txt
Microsoft Office 2019 Build 10730.20102 RTM
Source:
https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
GVLKs for Office 2019
=====================
Office Professional Plus 2019
NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Office Standard 2019
@jheinrichs79
jheinrichs79 / GVLKs for KMS.txt
Created November 28, 2022 16:48 — forked from ezracb/GVLKs for KMS.txt
Microsoft Office 2019 Build 10730.20102 RTM
Source:
https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
GVLKs for Office 2019
=====================
Office Professional Plus 2019
NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Office Standard 2019
I can run a single line in a powershell file and the script works correctly.
C:\folder\script.ps1 -inputFile "\\Server\share\script01.ps1" -outputFile "\\Server\share\file.exe" -elevated -title 'My Application' -version '1.0.0.0'
What I would like to do is to add some variables so that I can make the call more dynamic. Is there a way to do this?
C:\folder\script.ps1 -inputFile $input -outputFile $output -elevated -title $Title -version $version
#==============================================================================================
# XAML Code - Imported from Visual Studio Express 2013 WPF Application
#==============================================================================================
[void][System.Reflection.Assembly]::LoadWithPartialName('presentationframework')
[xml]$XAML = @'
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="OS Details" Height="306" Width="525" WindowStartupLocation="CenterScreen" WindowStyle="None" ResizeMode="NoResize">
<Grid Margin="0,0,-0.2,0.2">
@jheinrichs79
jheinrichs79 / Powershell - Domain Lockout Troubleshooter.ps1
Created November 24, 2018 15:19
Powershell - Domain Lockout Troubleshooter
<#
.SYNOPSIS
Quickly get the lockouts of Domain accounts
.DESCRIPTION
This script will show you the number of lockout of "X" amount of day.
It helps to easily track down lockout account issue and
.NOTES
Version: 1.0
Author: Jared Heinrichs
Creation Date: 11/22/2018