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
# // __________________________________ | |
# // | Original @ 09/26/2019 14:49:00 | | |
# // ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ | |
# // __________________________________________________________________________________________________________ | |
# // |¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯| | |
# // | Example, you want to have a spacing in the way your stuff is written to the screen. | | |
# // | You can have characters already fully assembled, and then select the distance with the array selector. | | |
# // | You can use this idea in a couple different ways... | | |
# // |________________________________________________________________________________________________________| |
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
Function Gather-Download | |
{ | |
[CmdLetBinding()]Param( | |
[ValidateNotNullOrEmpty()] | |
[Parameter(Position=0,Mandatory)][String]$URL, | |
[Parameter(Position=1)][String]$Path="$Home\Downloads", | |
[Parameter(Position=2)][String]$Info=$URL, | |
[Parameter(Position=3)][Switch]$Hash) | |
Import-Module BitsTransfer |
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
Function Download-WindowsServer2019 | |
{ | |
[CmdLetBinding()]Param( | |
[Parameter(Position=0,Mandatory=$True)][String]$Path) | |
$Current = [Net.ServicePointManager]::SecurityProtocol | |
[Net.ServicePointManager]::SecurityProtocol = 3072 | |
Import-Module BITSTransfer | |
$Image = "17763.379.190312-0539.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.iso" |
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
$ID = [Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent() | |
If (!($ID.IsInRole("Administrator") -or $ID.IsInRole("Administrators"))) | |
{ | |
If (Get-CimInstance Win32_OperatingSystem | ? { [UInt32]$_.BuildNumber -ge 6000 }) | |
{ | |
Write-Host "Not running as admin, attempting elevation..." | |
$Command = $MyInvocation | % { "-File `"{0} {1}`"; Exit" -f $_.MyCommand.Path, $_.UnboundArguments } | |
Start-Process PowerShell -Verb Runas -Args $Command | |
} |
NewerOlder