Using the SharePoint Administrator PowerShell command Import-SPWeb, I loop through many backup files, each generates the output:
Log file generated: C:\somepath\backup.cmp.import.log
With the amount of files imported these messages make error and tracking output unmanageable. How can I suppress the message & still generate the log?
The following does not work
Import-SPWeb -Identity... | Out-File $null
I have attempted to use Start-Job with a script block but it does not seem to actually run the command.
Invoke command with scriptblock outputs the writing I want to avoid
I have been attempting to work with runspace but even InvokeAsync seems to output the writing I wish to avoid