Skip to content

Instantly share code, notes, and snippets.

View michalzobec's full-sized avatar

Michal ZOBEC michalzobec

View GitHub Profile
@jauderho
jauderho / RDSHCert.ps1
Created March 29, 2017 23:42
PowerShell fragments for automated Let's Encrypt cert request/renew/install for RDP
###################################################################################
# File Name: RDSHCert.ps1 #
# Description: Script to Configure RDSH Certificate in WMI RDP-TCP #
# Version: 1.0 #
# Creator: Ryan Mangan #
# Emails: Ryan.mangan@systechitsolutions.co.uk #
# Blog: Ryanmangansitblog.com #
# #
# Date: March 2014 #
# Notes: RDSH Certificate Deployment #
@bklockwood
bklockwood / offlinewucheck.ps1
Last active March 3, 2022 04:05
Powershell offline WU check
<#
This script performs the 'search' phase of a Windows Update, using the standard WUA API.
It does not download or install updates.
Sole purpose of this script is to find out how long it takes to download the required cabfile,
then process it against a live system and return the list of updates available for that system.
#>
function DownloadFile {
param (
[Parameter(Mandatory=$true,Position=0)] $url,
[Parameter(Mandatory=$true,Position=1)] $file