問題は、統合されたセキュリティのために資格情報がSQLServerにホッピングしていないことです。次のことを行う必要があります。
サーバー上(管理者が実行するときにSQL Server接続を確立しているサーバー:
Enable-WSManCredSSP -Role server
クライアントマシンで、管理者が実行すると、次のようになります。
Enable-WSManCredSSP -Role client -DelegateComputer YOUR_SERVER_NAME
これをすべてのサーバーに公開するには、次のコマンドを実行できます。
Enable-WSManCredSSP -Role client -DelegateComputer *
最後に、invokeコマンドで、-authenticationcredsspを実行していることを確認してください。例:
invoke-command -computername $remoteServer -authentication credssp -scriptblock { write-host "hello!" } -credential $credentials