SecTeer VulnDetect Support Forum

    VulnDetect

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Download VulnDetect Installer

    [VulnDetect][Custom Software] Microsoft 365 / Office - Updating

    [Corporate] Deployment -> Custom Software
    1
    1
    218
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      Tom VulnDetect Team Member last edited by Tom

      Updating your Microsoft 365 installations using Custom Software is very easy.

      We have made the below simple sample code, which will update it in a safe manner.

      You may want to alter this:
      /update user displaylevel=false forceappshutdown=false

      The displaylevel can be set to true, then the user will see a popup.

      And you would be able to close the apps by changing forceappshutdown to true. Our tests shows that this is safe, as it doesn't close the apps, if people have unsaved documents open. However, please test this on a few hosts, before doing this across the entire company network.

      $path64 = "C:\Program Files\Common Files\microsoft shared\ClickToRun"
      $path32 = "C:\Program Files (x86)\Common Files\microsoft shared\ClickToRun"
      $file = "OfficeC2RClient.exe"
      $arguments = "/update user displaylevel=false forceappshutdown=false"
      function updateOffice ($clicktorun, $arguments) {
          Start-Process -PassThru -FilePath $clicktorun -ArgumentList $arguments
      }
      if (Test-Path -LiteralPath "$path32\$file" -PathType Leaf -ErrorAction SilentlyContinue) {
          updateOffice -clicktorun $path32\$file -arguments $arguments
      }
      elseif (Test-Path -LiteralPath "$path64\$file" -PathType Leaf -ErrorAction SilentlyContinue) {
          updateOffice -clicktorun $path64\$file -arguments $arguments
      }
      else {
          Write-Host "Error: $file not found in default locations, aborting."
      }
      

      NOTE: A signed edition of the script can be found here:
      https://dl.vulndetect.com/dl/update-office.ps1

      Remember to select All files:
      All files.png

      MS 365 Update.png

      /Tom
      Download the latest SecTeer VulnDetect agent here:
      https://vulndetect.com/dl/secteerSetup.exe

      1 Reply Last reply Reply Quote 1
      • First post
        Last post
      Download SecTeer Personal VulnDetect - an alternative to the long lost Secunia PSI

      Please see our Privacy and Data Processing Policy
      Sponsored and operated by SecTeer | VulnDetect is a replacement for the EoL Secunia PSI
      Forum software by NodeBB