Vous souhaitez découvrir comment gérer efficacement le déploiement de vos logiciels en entreprise ?
| Editeur | Microsoft |
Copy to clipboard
|
|---|---|---|
| Description | Microsoft Office 365 est une suite d'applications de productivité incluant Word, Excel, PowerPoint, Outlook et bien d'autres. |
Copy to clipboard
|
| Type de licence | Payant |
Copy to clipboard
|
| Etiquettes / Catégories |
Copy to clipboard
|
Office 365 est pris en charge par l'agent WinAppack. Retrouvez ci-dessous le script PowerShell utilisé pour son installation et sa désinstallation, ainsi que le package complet à télécharger.
| Version | 16.0.20430.20146 |
Copy to clipboard
|
|---|---|---|
| Archive | Office_365_FR-2026.10.20-16.0.20430.20146-64bits-001_c78f510fcc.zip |
Copy to clipboard
|
| SHA256 | 9555D1C0C39F4E7D58F8CF1773C4481F991B1AB36CFFD7FF101E12AEFB739AB1 |
Copy to clipboard
|
Pour vérifier l'intégrité de l'archive, exécutez cette commande PowerShell depuis le dossier de téléchargement. Elle doit renvoyer True.
(Get-FileHash .\Office_365_FR-2026.10.20-16.0.20430.20146-64bits-001_c78f510fcc.zip -Algorithm SHA256).Hash -eq '9555D1C0C39F4E7D58F8CF1773C4481F991B1AB36CFFD7FF101E12AEFB739AB1'Ce script nécessite le module WAP.dll (framework WinAppack) pour fonctionner. Il est fourni dans le package zip ci-dessus, dans le même dossier que le script.
param (
[switch]$UNINSTALL,
[switch]$INSTALL,
[switch]$CLOSEAPPMESSAGE,
[switch]$CLEAN,
[switch]$DESKTOPSHORTCUT
)
try {
Import-Module "$PSScriptRoot\WAP.dll"
WAP\Invoke-WAPEnv
$DefaultParamInstall = "-INSTALL -CLOSEAPPMESSAGE"
$DefaultParamUninstall = "-UNINSTALL -CLOSEAPPMESSAGE"
$software.Name = 'Office 365'
$software.Language = 'FR'
$software.Release_Date = '2026.10.20'
$software.Version = '16.0.20430.20146'
$software.Architecture = '64bits'
$software.Package_Version = '001'
$software.DiskSpace_Mo_Needed = 6000
$software.RAM_Mo_Needed = 4000
$software.Description = "Microsoft Office 365 is a suite of productivity applications including Word, Excel, PowerPoint, Outlook, and more."
$software.Publisher = "Microsoft Corporation"
$software.VisibleProcessesToCloseByUser = @("EXCEL","ONEDRIVE","ONENOTE","OUTLOOK","POWERPNT","WINWORD","MS-TEAMS")
$software.BackgroundProcessesToKill = @()
$software.Path_32 = @("$PF86\Microsoft Office\root\Office16\EXCEL.EXE","$PF86\Microsoft Office\root\Office16\ONENOTE.EXE","$PF86\Microsoft Office\root\Office16\OUTLOOK.EXE","$PF86\Microsoft Office\root\Office16\POWERPNT.EXE","$PF86\Microsoft Office\root\Office16\WINWORD.EXE")
$software.Path_64 = @("$PF\Microsoft Office\root\Office16\EXCEL.EXE","$PF\Microsoft Office\root\Office16\ONENOTE.EXE","$PF\Microsoft Office\root\Office16\OUTLOOK.EXE","$PF\Microsoft Office\root\Office16\POWERPNT.EXE","$PF\Microsoft Office\root\Office16\WINWORD.EXE")
$software.DisplayName = $software.Name
# On ne check pas l'emplacement de OneDrive et Teams
# Guide : https://silentinstallhq.com/microsoft-office-365-silent-install-how-to-guide/
# Lien de t�l�chargement : https://www.microsoft.com/en-us/download/details.aspx?id=49117
# Cr�ation du fichier xml de configuration : https://config.office.com/deploymentsettings
# Le fichier xml de d�sinstallation est toujours le m�me (� v�rifier)
$TempPath = "C:\Windows\Temp\Office365"
#############################################################
# UNINSTALL
#############################################################
if($UNINSTALL) {
WAP\Start-WAPSession "UNINSTALL"
New-Item -Path $TempPath -ItemType Directory -Force | Out-Null
$ExitCode = WAP\Start-Execution -Exe "$Path\App\officedeploymenttool*.exe" -Arg "/extract:`"$TempPath`" /quiet"
$UninstallxmlContent = @"
<Configuration>
<Display Level="None" AcceptEULA="TRUE" />
<Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
<Remove>
<Product ID="O365ProPlusRetail">
</Product>
<Product ID="O365BusinessRetail">
</Product>
<Product ID="VisioProRetail">
</Product>
<Product ID="ProjectProRetail">
</Product>
<Product ID="AccessRuntimeRetail">
</Product>
</Remove>
</Configuration>
"@
Set-Content -Path "$TempPath\O365_Uninstall.xml" -Value $UninstallxmlContent -Encoding UTF8
$ExitCode = WAP\Start-Execution -Exe "$TempPath\setup.exe" -Arg "/configure `"$TempPath\O365_Uninstall.xml`""
Remove-Item -Path $TempPath -Recurse -Force | Out-Null
WAP\Test-AppPath -Path ($software.Path_32)[0] -Expected $false
WAP\Test-AppPath -Path ($software.Path_64)[0] -Expected $false
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_32)[0]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_32)[1]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_32)[2]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_32)[3]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_32)[4]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_64)[0]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_64)[1]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_64)[2]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_64)[3]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path_64)[4]
if ($CLEAN)
{
WAP\Remove-AppItem -Path "$PF86\Microsoft Office"
WAP\Remove-AppItem -Path "$PF\Microsoft Office"
WAP\Remove-AppItem -Path "$PF86\Microsoft Office 15"
WAP\Remove-AppItem -Path "$PF\Microsoft Office 15"
WAP\Remove-AppItem -Path "$PF86\Microsoft OneDrive"
WAP\Remove-AppItem -Path "$PF\Microsoft OneDrive"
foreach ($User in (WAP\Get-UserInfos)) {
WAP\Remove-AppItem -Path "$($User.ProfilePath)\AppData\Local\Microsoft\Office"
WAP\Remove-AppItem -Path "$($User.ProfilePath)\AppData\Local\Microsoft\OneDrive"
WAP\Remove-AppItem -Path "HKU:\$($User.SID)\Software\Microsoft\Office"
}
}
WAP\Stop-WAPSession
}
#############################################################
# INSTALL
#############################################################
if($INSTALL) {
WAP\Start-WAPSession "INSTALL"
New-Item -Path $TempPath -ItemType Directory -Force | Out-Null
$ExitCode = WAP\Start-Execution -Exe "$Path\App\officedeploymenttool*.exe" -Arg "/extract:`"$TempPath`" /quiet"
$InstallxmlContent = @"
<Configuration ID="3a7ad9a1-a892-416a-a48c-c349179052c6">
<Add OfficeClientEdition="64" Channel="Current" OfficeMgmtCOM="TRUE">
<Product ID="O365ProPlusRetail">
<Language ID="fr-fr" />
<ExcludeApp ID="Access" />
<ExcludeApp ID="Groove" />
<ExcludeApp ID="Lync" />
<ExcludeApp ID="OutlookForWindows" />
<ExcludeApp ID="Publisher" />
<ExcludeApp ID="Bing" />
</Product>
<Product ID="ProofingTools">
<Language ID="en-us" />
<Language ID="fr-fr" />
</Product>
</Add>
<RemoveMSI />
<Display Level="None" AcceptEULA="TRUE" />
</Configuration>
"@
Set-Content -Path "$TempPath\O365_Install.xml" -Value $InstallxmlContent -Encoding UTF8
$ExitCode = WAP\Start-Execution -Exe "$TempPath\setup.exe" -Arg "/configure `"$TempPath\O365_Install.xml`""
Remove-Item -Path $TempPath -Recurse -Force | Out-Null
WAP\Test-AppPath -Path ($software.Path)[0] -Expected $true
WAP\Test-AppPath -Path ($software.Path)[1] -Expected $true
WAP\Test-AppPath -Path ($software.Path)[2] -Expected $true
WAP\Test-AppPath -Path ($software.Path)[3] -Expected $true
if($DESKTOPSHORTCUT) {
WAP\Set-DesktopShortcut -TargetPath ($software.Path)[0]
WAP\Set-DesktopShortcut -TargetPath ($software.Path)[1]
WAP\Set-DesktopShortcut -TargetPath ($software.Path)[2]
WAP\Set-DesktopShortcut -TargetPath ($software.Path)[3]
WAP\Set-DesktopShortcut -TargetPath ($software.Path)[4]
} else {
WAP\Clear-DesktopShortcut -TargetPath ($software.Path)[0]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path)[1]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path)[2]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path)[3]
WAP\Clear-DesktopShortcut -TargetPath ($software.Path)[4]
}
WAP\Stop-WAPSession
}
}
catch {
Write-Output "General Error : $($_.Exception.Message)"
exit 499
}