Skip to content

Instantly share code, notes, and snippets.

View jacobboykin's full-sized avatar
👽

Jacob Boykin jacobboykin

👽
View GitHub Profile
$setupEXE = "C:\Apps\Office-365\Source\setup.exe"
$arguments = "/download C:\Apps\Office-365\Source\Download.xml"
# Delete current office source if it exists
if (Test-Path "C:\Apps\Office-365\Source\Office") {
Remove-Item "C:\Apps\Office-365\Source\Office" -Recurse -Force
}
# Run setup.exe in download mode
Start-Process -FilePath $setupEXE -ArgumentList $arguments -Wait