Alex

Alex

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Alex
    Participant
    Post count: 4

    Unfortunately, no luck using the syntax you’ve provided but after some trial and error I finally figured out the proper syntax to make it work, please see below. Thanks much for the advice!

    Install:
    Execute-Process -Path "wusa.exe" -WorkingDirectory "$dirFiles" -Parameters "WindowsTH-RSAT_WS2016-x64.msu /quiet /norestart" -WindowStyle 'Hidden' -CreateNoWindow

    Uninstall:
    Execute-Process -Path "wusa.exe" -WorkingDirectory "$dirFiles" -Parameters "/uninstall WindowsTH-RSAT_WS2016-x64.msu /quiet /norestart" -WindowStyle 'Hidden' -CreateNoWindow

  • Alex
    Participant
    Post count: 4

    Unfortunately, I still can’t get it to work. Execution failed with exit code [2] is the error I keep getting. Any other suggestions?

Viewing 2 posts - 1 through 2 (of 2 total)