Background:
We have server monitoring software which runs as a service on all servers (including Veeam).
This above service is running as "NT Authority\System".
We have a number of powershell scripts to monitor the state of the backups on the Veeam servers.
As a consequence the powershell scripts are executed as "NT Authority\System"
Issue:
Recently some servers started to output Access is denied when the above scripts run.
It fails at the step "Connect-VBRServer -Server localhost"
Here is the output of one of these sessions:
Code: Select all
PS C:\Windows\system32> whoami
nt authority\system
PS C:\Windows\system32> Add-PSSnapin VeeamPsSnapin
PS C:\Windows\system32> Connect-VBRServer -Server localhost
Connect-VBRServer : PowerShell environment initialization failed: Failed to connect to Veeam Backup &
Replication server:
Access denied.
At line:1 char:1
+ Connect-VBRServer -Server localhost
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-VBRServer], Exception
+ FullyQualifiedErrorId : System.Exception,Veeam.Backup.PowerShell.Cmdlets.ConnectVBRServer
SQL Server is running as Local System
The same script works fine if run as a local administrator.
Question:
How could this be fixed?
What permissions need to be changed?
Is it on the SQL Server?
Regards,
Elemer Gazda