2016サーバ上で動作しますが、ではない、私は次のスクリプトを持っています)それは私に次のエラーを与えます:SQL Serverのバックアップスクリプト(PowerShellは)2012
Exception calling "SqlBackup" with "1" argument(s): "Backup failed for Server 'Server1'. "
At C:\Users\Administrator\Documents\Scripts\sqlFullBackup.ps1:43 char:9
+ $smoBackup.SqlBackup($server)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : FailedOperationException
これを回避する方法はありますか?事前に
おかげ
--- EDIT -----------------------------
を実行しています
$error[0] | fl -force
私は、次を得る:
System.Data.SqlClient.SqlException: Cannot open backup device '\\ServerAddress\Folder\file_2017-06-17-110451_daily.bak'. Operating system error 5(Access is denied.).
うん、それはローカルフォルダに動作しますが、私は、SQL Serverは、サーバ2012が動作しているどのような環境 –
がインストールされていないバックアップサーバとしての権限としてMSSQLSERVERを追加することはできませんか? SQL Serverのサービスアカウントは、SQL Server Configuration Managerのアカウントまたはユーザーアカウントに組み込まれていますか? –
ああああ、ありがとうございました。それはワークグループ上にあり、SQL設定マネージャのアカウントを変更することはそのトリックでした。 –