This file contains hidden or 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
<# | |
.Synopsis | |
Compares system modules with available ones on powershell gallery | |
.DESCRIPTION | |
Compares system modules with available ones on powershell gallery | |
.EXAMPLE | |
Compare-SystemModuleWithGallery | |
.Link | |
http://mikefrobbins.com/2016/06/09/update-manually-installed-powershell-modules-from-the-powershell-gallery/ | |
#> |
This file contains hidden or 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
#Requires -RunAsAdministrator | |
<# | |
.Synopsis | |
Creates a new Hyper-V instance from a named template. | |
.DESCRIPTION | |
Imports an existing Hyper-V export into a new instance, set-up the local client host/ip resoltution and generate bootstrapping powershell script. | |
.PARAMETER OSVersion | |
The code name for operating system | |
.PARAMETER VMName |
This file contains hidden or 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
param( | |
[Parameter(Mandatory=$true)] | |
[string]$NewWindowsServerVersionComputer, | |
[Parameter(Mandatory=$true)] | |
[string]$OldWindowsServerVersionComputer | |
) | |
# Process new windows server version | |
$featuresOnNew=Get-WindowsFeature -ComputerName $NewWindowsServerVersionComputer | |
$availableOnNew=$featuresOnNew|Where-Object -Property "InstallState" -EQ "Available" | |
$installedNew=$featuresOnNew|Where-Object -Property "InstallState" -EQ "Installed" |
This file contains hidden or 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
<# | |
.Synopsis | |
Reset the window title of the console | |
.DESCRIPTION | |
Reset the window title of the console | |
.EXAMPLE | |
Reset-PrefixedTitle | |
#> | |
function Reset-PrefixedTitle | |
{ |