i fixed it by giving the account i was running the powershell with rights on the remote database as well as the service account.
↧
i fixed it by giving the account i was running the powershell with rights on the remote database as well as the service account.