Skip to content

Commit

Permalink
24.1.26.1
Browse files Browse the repository at this point in the history
  • Loading branch information
1eyeITguy committed Jan 26, 2024
1 parent b96053c commit 19736d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
14 changes: 11 additions & 3 deletions functions/oobeFunctions.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[CmdletBinding()]
param()
$ScriptName = 'oobeFunctions.sight-sound.dev'
$ScriptVersion = '24.1.25.1'
$ScriptVersion = '24.1.26.1'

#region Initialize
if ($env:SystemDrive -eq 'X:') {
Expand Down Expand Up @@ -389,6 +389,11 @@ function Step-InstallM365Apps {
Write-Host -ForegroundColor Green "[+] M365 Applications Installed"
return
}
$skyppedPath = "c:\osdcloud\scripts\m365appinstallskipped.txt"
if (test-path $skyppedPath) {
Write-Host -ForegroundColor Cyan "[!] Installation of M365 office applications skipped."
return
}
# Display a pop-up asking for user confirmation
$caption = "Install M365 Apps?"
$message = "Would you like to install the M365 Office Applications?"
Expand All @@ -397,13 +402,16 @@ 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"

# 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://ssintunedata.blob.core.windows.net/m365/configuration.xml" -ErrorAction SilentlyContinue
}
else {
Write-Host -ForegroundColor Cyan "[!] Installation of M365 office applications skipped."
New-Item -ItemType File -Path $skyppedPath | Out-Null
return
}
}
Expand Down
4 changes: 2 additions & 2 deletions subdomains/osd.sight-sound.dev.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ powershell iex (irm osd.sight-sound.dev)
[CmdletBinding()]
param()
$ScriptName = 'osd.sight-sound.dev'
$ScriptVersion = '24.1.25.1'
$ScriptVersion = '24.1.26.1'

#region Initialize
$Transcript = "$((Get-Date).ToString('yyyy-MM-dd-HHmmss'))-$ScriptName.log"
Expand Down Expand Up @@ -97,7 +97,7 @@ if ($WindowsPhase -eq 'AuditMode') {
#region OOBE
if ($WindowsPhase -eq 'OOBE') {
#Load everything needed to setup a new computer and register to AutoPilot
osdcloud-StartOOBE -InstallWinGet -WinGetUpgrade -WinGetPwsh
osdcloud-StartOOBE -InstallWinGet -WinGetUpgrade
Step-installCiscoRootCert
Step-InstallM365Apps
Step-oobeDellDCU
Expand Down

0 comments on commit 19736d9

Please sign in to comment.