This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################### | |
# File Name: RDSHCert.ps1 # | |
# Description: Script to Configure RDSH Certificate in WMI RDP-TCP # | |
# Version: 1.0 # | |
# Creator: Ryan Mangan # | |
# Emails: [email protected] # | |
# Blog: Ryanmangansitblog.com # | |
# # | |
# Date: March 2014 # | |
# Notes: RDSH Certificate Deployment # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
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 |