Skip to content

Instantly share code, notes, and snippets.

View vniklas's full-sized avatar

vNiklas Akerlund vniklas

View GitHub Profile
param (
[Parameter()]
[ValidateSet('VMM','OM','DPM','SCORH','SM','All')]
[String] $Component = 'All',
[Parameter()]
[String] $Destination = $env:TEMP
)
Begin {
@vniklas
vniklas / Compare-Module.ps1
Created June 30, 2016 13:28 — forked from jdhitsolutions/Compare-Module.ps1
Use this command to compare module versions between what is installed against an online repository like the PSGallery. Results will be automatically sorted by module name.
#requires -version 5.0
Function Compare-Module {
<#
.Synopsis
Compare module versions.
.Description
Use this command to compare module versions between what is installed against an online repository like the PSGallery. Results will be automatically sorted by module name.
.Parameter Name
The name of a module to check. Wildcards are permitted.
@vniklas
vniklas / IISInstall.ps1
Created August 30, 2021 11:07 — forked from jjgriff93/IISInstall.ps1
Windows Server 2016 - PowerShell DSC Config File - IIS Web Server
configuration IISInstall
{
node "localhost"
{
WindowsFeature IIS
{
Ensure = "Present"
Name = "Web-Server"
}
}