Created
May 14, 2019 16:36
-
-
Save OSDeploy/ee7eb3855653bc6abfff2f03ce9b4bf5 to your computer and use it in GitHub Desktop.
Update-OSDUpdateStandalone.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
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 | |
Write-Host "OSDUpdateRepository: $OSDUpdateRepository" -ForegroundColor Cyan | |
#Office | |
Get-DownOSDUpdate -CatalogOffice "Office 2010 32-Bit" -OfficeProfile Default -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded | |
Get-DownOSDUpdate -CatalogOffice "Office 2013 32-Bit" -OfficeProfile Default -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded | |
Get-DownOSDUpdate -CatalogOffice "Office 2016 32-Bit" -OfficeProfile Default -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded | |
#Windows 10 | |
Get-DownOSDUpdate -CatalogWindows "Windows 10" -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded -UpdateArch x64 -UpdateBuild 1803 | |
Get-DownOSDUpdate -CatalogWindows "Windows 10" -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded -UpdateArch x64 -UpdateBuild 1809 | |
#Windows 7 | |
Get-DownOSDUpdate -CatalogWindows "Windows 7" -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded -AddInstallScript | |
#McAfee | |
Get-DownMcAfee -Download "SuperDAT v2" -DownloadPath "$OSDUpdateRepository\McAfee" -RenameDAT | |
# Windows Defender | |
Get-DownDefender -OS "Windows V-7" -OSArch 32-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender" | |
Get-DownDefender -OS "Windows V-7" -OSArch 64-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender" | |
Get-DownDefender -OS "Windows 8-10" -OSArch 32-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender" | |
Get-DownDefender -OS "Windows 8-10" -OSArch 64-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment