diff --git a/functions/oobeFunctions.ps1 b/functions/oobeFunctions.ps1 index f74a2f3..5ee5fee 100644 --- a/functions/oobeFunctions.ps1 +++ b/functions/oobeFunctions.ps1 @@ -402,12 +402,14 @@ function Step-InstallM365Apps { if ($result -eq [System.Windows.Forms.DialogResult]::Yes) { Write-Host -ForegroundColor Yellow "[-] Installing M365 Applications" - winget install microsoft.office --exact --accept-source-agreements --accept-package-agreements --override "/configure https://raw.githubusercontent.com/sightsoundtheatres/osd/main/supportFiles/MicrosoftOffice/configuration.xml" + #$configFile = "C:\OSDCloud\configuration.xml" + #Invoke-RestMethod -Uri "https://raw.githubusercontent.com/sightsoundtheatres/osd/main/supportFiles/MicrosoftOffice/configuration.xml" -Outfile $configFile + #winget install microsoft.office --override "/configure $configFile" --accept-source-agreements --accept-package-agreements # Download the script - #Invoke-WebRequest -Uri https://raw.githubusercontent.com/sightsoundtheatres/osd/main/functions/InstallM365Apps.ps1 -OutFile $scriptPath + Invoke-WebRequest -Uri https://raw.githubusercontent.com/sightsoundtheatres/osd/main/functions/InstallM365Apps.ps1 -OutFile $scriptPath # Execute the script - #& $scriptPath -XMLURL "https://ssintunedata.blob.core.windows.net/m365/configuration.xml" -ErrorAction SilentlyContinue + & $scriptPath -XMLURL "https://raw.githubusercontent.com/sightsoundtheatres/osd/main/supportFiles/MicrosoftOffice/configuration.xml" -ErrorAction SilentlyContinue } else { Write-Host -ForegroundColor Cyan "[!] Installation of M365 office applications skipped." diff --git a/supportFiles/MicrosoftOffice/configuration.xml b/supportFiles/MicrosoftOffice/configuration.xml index 796b400..7e46bf2 100644 --- a/supportFiles/MicrosoftOffice/configuration.xml +++ b/supportFiles/MicrosoftOffice/configuration.xml @@ -1,5 +1,5 @@ - +