If I load the script in PowerShell ISE and run it, then the backup executes as expected. If I try to run the script via a scheduled task, I get 3 identical errors appear in the Veeam Backup event log:
Code: Select all
Alternative log directory setting error :
System.Security.SecurityException: Requested registry access is not allowed.
at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean writable)
at Veeam.Backup.Common.LogOptions.GetPreferedLogDir(String componentRegKey)
The Zone of the assembly that failed was:
MyComputer
Using default directory : C:\ProgramData\Veeam\Backup\
The B&R PC is running Windows 7 Pro x64, as it's just a quick setup to test a few concepts before deciding if we want to purchase the product.