I have been successful at getting wusa.exe to run and create its’ own error log. How can I get it to pass any errors to Powershell so they can be written into the scripts logfile?
you can get the possible command line arguments wusa is able to process. I would assume they didn’t design it to pass errors to the shell in another way than writing a log file. But because you can specify the log file wusa should use you could get the content of that log file and include it in whatever you like.
BTW: In your example you actually throw away everything wusa could possibly output with “| Out-Null”