Advertisement
Guest User

Untitled

a guest
May 24th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. Clear-Host
  2.  
  3. if ($psise) {
  4. $ScriptDirectory = Split-Path $psise.CurrentFile.FullPath
  5. } else {
  6. $ScriptDirectory = $PSScriptRoot
  7. }
  8. Write-Host "ScriptDirectory: $ScriptDirectory" -ForegroundColor Cyan
  9.  
  10. $OSDUpdateRepository = (Get-Item $ScriptDirectory).Parent.FullName
  11. Write-Host "OSDUpdateRepository: $OSDUpdateRepository" -ForegroundColor Cyan
  12.  
  13. #Office
  14. Get-DownOSDUpdate -CatalogOffice "Office 2010 32-Bit" -OfficeProfile Default -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded
  15. Get-DownOSDUpdate -CatalogOffice "Office 2013 32-Bit" -OfficeProfile Default -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded
  16. Get-DownOSDUpdate -CatalogOffice "Office 2016 32-Bit" -OfficeProfile Default -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded
  17.  
  18. #Windows 10
  19. Get-DownOSDUpdate -CatalogWindows "Windows 10" -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded -UpdateArch x64 -UpdateBuild 1803
  20. Get-DownOSDUpdate -CatalogWindows "Windows 10" -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded -UpdateArch x64 -UpdateBuild 1809
  21.  
  22. #Windows 7
  23. Get-DownOSDUpdate -CatalogWindows "Windows 7" -RepositoryRootPath "$OSDUpdateRepository" -RemoveSuperseded -AddInstallScript
  24.  
  25. #McAfee
  26. Get-DownMcAfee -Download "SuperDAT v2" -DownloadPath "$OSDUpdateRepository\McAfee" -RenameDAT
  27.  
  28. # Windows Defender
  29. Get-DownDefender -OS "Windows V-7" -OSArch 32-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender"
  30. Get-DownDefender -OS "Windows V-7" -OSArch 64-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender"
  31. Get-DownDefender -OS "Windows 8-10" -OSArch 32-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender"
  32. Get-DownDefender -OS "Windows 8-10" -OSArch 64-Bit -DownloadPath "$OSDUpdateRepository\Windows Defender"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement