Hello,
Thank you for posting in Q&A forum.
Yes, Microsoft Office supports silent installation using PowerShell. However, the script you provided seems incomplete and lacks the parameters required for silent installation.
We suggest that you try the following modified example script to perform a silent installation:
$exePackageToInstall = "C:\Users\Administrator\Downloads\OfficeSetup.exe"
$arguments = "/configure C:\path\to\configuration.xml"
Start-Process -FilePath $exePackageToInstall -ArgumentList $arguments -NoNewWindow -Wait
In this script:
Replace "C:\Users\Administrator\Downloads\OfficeSetup.exe" with the path to your Office installation file.
Replace "C:\path\to\configuration.xml" with the path to the configuration XML file containing Office installation settings.
Ensure that your configuration file contains the necessary settings for silent installation. Once the script has been adjusted and a valid configuration file has been provided, try running the script again to use PowerShell for silent installation of Microsoft Office. If it still doesn't work, please provide more details and I will continue to assist you.
Hope this answer can help you well.
Best regards,
Jill Zhou