Skip to content

Instantly share code, notes, and snippets.

@JuryA
Last active February 12, 2020 13:30
Show Gist options
  • Select an option

  • Save JuryA/375dcfc52c4130783e5025dfe2acf8cc to your computer and use it in GitHub Desktop.

Select an option

Save JuryA/375dcfc52c4130783e5025dfe2acf8cc to your computer and use it in GitHub Desktop.
$xml_config = @'
<Configuration ID="ef54145e-08ba-43b3-9b4a-58550103039e">
<Info Description="O365 Click-to-Run Configuration by DCC © 2019" />
<Add OfficeClientEdition="64" Channel="Monthly" ForceUpgrade="TRUE">
<Product ID="O365ProPlusRetail">
<Language ID="MatchOS" />
<Language ID="cs-cz" />
<Language ID="en-us" />
<ExcludeApp ID="Groove" />
</Product>
<Product ID="LanguagePack">
<Language ID="MatchOS" />
<Language ID="cs-cz" />
<Language ID="en-us" />
<ExcludeApp ID="Groove" />
</Product>
</Add>
<Property Name="SharedComputerLicensing" Value="0" />
<Property Name="PinIconsToTaskbar" Value="TRUE" />
<Property Name="SCLCacheOverride" Value="0" />
<Property Name="AUTOACTIVATE" Value="0" />
<Property Name="FORCEAPPSHUTDOWN" Value="TRUE" />
<Property Name="DeviceBasedLicensing" Value="0" />
<Updates Enabled="TRUE" />
<RemoveMSI />
<AppSettings>
<Setup Name="Company" Value="Konica Minolta Business Solutions Czech Republic" />
<User Key="software\microsoft\office\16.0\sharepointtracking" Name="automaticdiscovery" Value="On" Type="REG_SZ" App="office16" Id="L_AutomaticDiscovery" />
<User Key="software\microsoft\office\16.0\common" Name="autoorgidgetkey" Value="1" Type="REG_DWORD" App="office16" Id="L_AutoOrgIDGetKey" />
<User Key="software\microsoft\office\16.0\excel\options" Name="defaultformat" Value="51" Type="REG_DWORD" App="excel16" Id="L_SaveExcelfilesas" />
<User Key="software\microsoft\office\16.0\powerpoint\options" Name="defaultformat" Value="27" Type="REG_DWORD" App="ppt16" Id="L_SavePowerPointfilesas" />
<User Key="software\microsoft\office\16.0\word\options" Name="defaultformat" Value="" Type="REG_SZ" App="word16" Id="L_SaveWordfilesas" />
</AppSettings>
<Display Level="Full" AcceptEULA="TRUE" />
</Configuration>
'@
Set-Content -Path "$env:TEMP\KM-DCC-O365.xml" -Force -Value $xml_config
choco install chocolatey-core.extension
choco upgrade Office365Business --force --params "/ConfigPath:$env:TEMP\KM-DCC-O365.xml"
if (Test-Path "$env:TEMP\KM-DCC-O365.xml") {
Remove-Item -Recurse "$env:TEMP\KM-DCC-O365.xml"
}
@JuryA
Copy link
Copy Markdown
Author

JuryA commented Dec 9, 2019

Added OneNote Desktop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment