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
{ | |
"TaskType": "OSBuild", | |
"TaskName": "Windows 10 1809 x64 Multi", | |
"TaskVersion": "19.4.11.0", | |
"TaskGuid": "900f013b-2f08-4304-a9aa-eb065477e67b", | |
"CustomName": "", | |
"OSMFamily": "Client Enterprise x64 17763 en-US", | |
"OSMGuid": "18887e55-5125-42ab-aaad-7b897bbb504b", | |
"Name": "Windows 10 Enterprise x64 1809 17763.404", | |
"ImageName": "Windows 10 Enterprise", |
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
[cmi] | |
namespace=urn:schemas-microsoft-com:unattend | |
ClientServerSplit=true | |
AnswerFileFormat=1 | |
professionalworkstationn=WYPNQ-8C467-V2W6J-TX4WX-WT2RQ | |
enterpriseneval=MNXKQ-WY2CT-JWBJ2-T68TQ-YBH2V | |
serverrdshCore=NJCF7-PW8QT-3324D-688JX-2YV66 | |
serverstorageworkgroupeval=NXCTR-YXXWC-TK368-HGGTF-8YB99 | |
onecoreupdateos=NFDPX-3MV8X-THC2X-QQ9QP-P9YY6 |
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
Clear-Host | |
if ($psise) { | |
$ScriptDirectory = Split-Path $psise.CurrentFile.FullPath | |
} else { | |
$ScriptDirectory = $PSScriptRoot | |
} | |
Write-Host "ScriptDirectory: $ScriptDirectory" -ForegroundColor Cyan | |
$OSDUpdateRepository = (Get-Item $ScriptDirectory).Parent.FullName |
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
<# | |
.NOTES | |
AUTHOR: David Segura | |
#> | |
#====================================================================================== | |
# Validate Admin Rights | |
#====================================================================================== | |
Write-Host "" | |
# Verify Running as Admin | |
$isAdmin = ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") |
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
$MDTRoot = 'D:\MDT' | |
Add-PSSnapIn Microsoft.BDD.PSSnapIn | |
New-PSDrive -Name “DS001” -PSProvider MDTProvider -Root $MDTRoot -EA SilentlyContinue | |
$PackageName = 'Office 2016 64-Bit' | |
$MDTPackage = "OSDUpdate Package $PackageName" | |
Import-MDTApplication -Path 'DS001:\Applications' -Enable 'True' ` | |
-Name $MDTPackage -ShortName $MDTPackage ` | |
-CommandLine "PowerShell.exe -ExecutionPolicy Bypass -File "".\Install-OSDUpdatePackage.ps1""" ` |
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
Uninstall-Module -Name OSDBuilder -AllVersions -Force -ErrorAction SilentlyContinue | |
Remove-Module -Name OSDBuilder -Force -ErrorAction SilentlyContinue | |
Install-Module -Name OSDBuilder -Force | |
Import-Module -Name OSDBuilder -Force | |
Write-Warning "Close all open PowerShell sessions before using OSDBuilder" |
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
$Wim = 'T:\install.wim' | |
$Mount = 'T:\Mount' | |
Mount-WindowsImage -ImagePath $Wim -Index 1 -Path $Mount | Out-Null | |
$Updates = Get-OSDSUS -Catalog OSDBuilder -UpdateArch x64 -UpdateBuild 1909 -UpdateOS "Windows 10" | Sort UpdateGroup -Descending | |
foreach ($Update in $Updates) { | |
Write-Verbose $Update.Title -Verbose | |
$UpdateFile = Save-OSDDownload -SourceUrl $Update.OriginUri -BitsTransfer -Verbose | |
Add-WindowsPackage -PackagePath $UpdateFile.FullName -Path $Mount -Verbose | Out-Null | |
} |
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
Function Set-ScreenResolution { | |
param ( | |
[Parameter(Mandatory=$true, | |
Position = 0)] | |
[int] | |
$Width, | |
[Parameter(Mandatory=$true, | |
Position = 1)] | |
[int] | |
$Height |
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
Write-Host "Hello" -Foregroundcolor Cyan | |
Write-Host "This is a PowerShell Script in a GitHub Gist at" -Foregroundcolor Cyan | |
Write-Host "https://gist.githubusercontent.com/OSDeploy/c3387cb58fc6490e1b5b0469dc668867/raw/946f1579047ac9e54299950220299dee8dd90d9c/WinPETest.ps1" -Foregroundcolor Cyan | |
Write-Host "" | |
Install-Module OSDSUS -Force -Verbose |
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
'PSCloudScript for WinPE PSGallery and OSDCloud' | |
'iex (irm live.osdcloud.com)' | |
'https://gist.github.com/OSDeploy/30dc8839e8972493be1a343d509f423f' | |
'https://gist.githubusercontent.com/OSDeploy/30dc8839e8972493be1a343d509f423f/raw/live.osdcloud.com.ps1' | |
function Set-WinPELocalAppData | |
{ | |
[CmdletBinding()] | |
param() | |
if (Get-Item env:LOCALAPPDATA -ErrorAction Ignore) | |
{ |