Skip to content

Instantly share code, notes, and snippets.

@keithga
keithga / Get-LatestUpdate.ps1
Last active February 23, 2024 13:17
script to get latest build.
<#
.SYNOPSIS
Get the latest Cumulative update for Windows
.DESCRIPTION
This script will return the list of Cumulative updates for Windows 10 and Windows Server 2016 from the Microsoft Update Catalog.
.NOTES
Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved.
#requires -Version 5
#requires -RunAsAdministrator
<#
.SYNOPSIS
Update Windows ADK
.DESCRIPTION
Will auto update/patch the Windows 10 Version 1703 ADK if installed.
@keithga
keithga / Wait-CheckPointTransition.ps1
Last active February 9, 2018 19:54
Wait for Checkpoint Transition
<#
.SYNOPSIS
Monitor Progress for CheckPoint Encryption or Decryption
.DESCRIPTION
This script is designed to Block the task sequence from continuing if Checkpoint
is in the Encrypting or Decrypting phase. Additionally will display a visual
progress percentage using the existing SMS Task Sequencing UI framework.
.NOTES
<#
.SYNOPSIS
Generate a computer list from Hyper-V ready to import into Configuration Manager
.DESCRIPTION
Given a Hyper-V server and a set of Hyper-V Virtual Machines, this script will
extract out the necessary information required to create the associated Machine Object in
Configuration Manager.
@keithga
keithga / Update-INIFiles.ps1
Created September 16, 2017 03:34
Update CustomSettings.ini file.
<#
.SYNOPSIS
Update CustomSettings.ini file.
.DESCRIPTION
Updates one or more CUstomSettings.ini files with a common value.
Calling powershell.exe instance must have read/write privelages to the share.
@keithga
keithga / get-Ignite2017Content.ps1
Last active October 3, 2017 05:22
Download Ignite content
<#
Script to assist finding content to download from MS Ignite 2017
Will use the script Get-IngiteSession.ps1 from: https://gallery.technet.microsoft.com/Ignite-2016-Slidedeck-and-296df316
#>
[cmdletbinding()]
param(
@keithga
keithga / Export-GroovePlaylist.ps1
Last active August 18, 2018 00:14
Export Microsoft Groove Playlists
<#
.SYNOPSIS
Export Groove Playlist
.DESCRIPTION
Export Groove Music playlist (tested on Groove Music version 9/25/2017)
Steps:
@keithga
keithga / test-switches.ps1
Last active October 10, 2017 05:42
TEst switches
Function Test-Switch ( [switch] $Test ) {
# Correct use of a switch Test (True case)
if ( $test ) {
"Do Something"
}
# Bad use of a switch test (False case)
if ( $test -eq $null ) {
"Never going to do it!"
#Requires -Version 3
#requires -RunAsAdministrator
<#
.SYNOPSIS
TPM Infineon Riemann Check
.DESCRIPTION
@keithga
keithga / ZTISelectBootDisk.wsf
Last active October 11, 2017 05:13
Select a disk based on BusType
<job id="ZTISelectBootDisk">
<script language="VBScript" src="ZTIUtility.vbs"/>
<script language="VBScript" src="ZTIDiskUtility.vbs"/>
<script language="VBScript">
' // ***************************************************************************
' //
' // Copyright (c) Microsoft Corporation. All rights reserved.
' //
' // Microsoft Deployment Toolkit Solution Accelerator