I'd be greatfull for any guidance or help. Thanks.
Command I'm using is:
SQLsafeCmd.exe Restore refresh_20180119142448 "\\DB-01\SQLBackups\TEST\estdb\DB-01_TEST_testdb_Full_201801131651.safe" -RecoveryMode NoRecovery -Server "DB-01" -InstanceName TEST -Move testdb D:\SqlData\testdb_20180119142448.mdf -Move testdb_log E:\SqlLog\testdb_log_20180119142448.ldf
Error I get is:
String reference not set to an instance of a String. Parameter name: s
SQLsafe Backup and Recovery CLI Version 8.4.2.149 (x64)Copyright (c) 2004-2017 Idera, Inc., All Rights Reserved.<http://www.idera.com/>
Connecting to service on DB-01...success. (8.4.2.149)
RESTORE refresh_20180119142448...FAILED.Statuses:Database name: refresh_20180119142448, Result: Server instance: DB-01\TEST, Database: refresh_20180119142448String reference not set to an instance of a String.Parameter name: s
I found the solution: prefixing the command with CMD /C
eg: Invoke-Expression "CMD /C `"SQLsafeCmd.exe`" Restore....