This PowerShell script will gather the appropriate event logs of a Windows Server 2019 computer running the Storage Migration Service feature, then save them to a ZIP file. You should run this script against both the Orchestrator node and the transfer destination node when troubleshooting. Always run from within an elevated PowerShell console.
To use locally and save to the current folder
PS C:> Import-Module .\StorageMigrationServiceHelper.psm1
PS C:> Get-SmsLogs
To use locally and save to a specified folder
PS C:> Import-Module .\StorageMigrationServiceHelper.psm1
PS C:> Get-SmsLogs -Path *c:\temp*
To use remotely
PS C:> Import-Module .\StorageMigrationServiceHelper.psm1
PS C:> Get-SmsLogs -Computer *Foo*
To see all help
PS C:> Import-Module .\StorageMigrationServiceHelper.psm1
PS C:> Help Get-SmsLogs
PowerShell is licensed under the MIT license.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.