The example below shows what happens when creating a controlled GPO in AGPM, but the same is true of other operations as well...
Error in AGPM:
Create GPO: C-Server-Firewall Settings...Failed
The overall error was: The user name or password is incorrect. (Exception from HRESULT: 0x8007052E)
Additional details follow.
[Error] Unable to cast object of type 'System.DBNull' to type 'Microsoft.Agpm.GroupPolicy.Interop.GPMBackup'.
Excerpt from %ProgramData%\Microsoft\AGPM\agpmserv.log(https://docs.microsoft.com/en-us/microsoft-desktop-optimization-pack/agpm/configure-logging-and-tracing):
2019-01-08 00:41:16:8281 [pid=4812,tid=7] [Error] [Litware.com] GPO:{063B4D92-4EFD-4C80-9785-EA59A9B73DC0} Msg:GPO backup operation failed. System.Runtime.InteropServices.COMException (0x8007052E): The user name or password is incorrect. (Exception
from HRESULT: 0x8007052E)
at Microsoft.Agpm.GroupPolicy.Interop.GPMResultClass.OverallStatus()
at Microsoft.Agpm.AgpmServer.backupGPO(IGPMGPO gpmGpo, String strComment, GPOVResult& msgResult)
2019-01-08 00:41:16:8906 [pid=4812,tid=7] [Error] [Litware.com] GPO:{063B4D92-4EFD-4C80-9785-EA59A9B73DC0} Msg:An error occured during empty GPO template creation. System.InvalidCastException: Unable to cast object of type 'System.DBNull' to type 'Microsoft.Agpm.GroupPolicy.Interop.GPMBackup'.
at Microsoft.Agpm.AgpmServer.CreateEmptyGpoTemplate(IGPMDomain2 gpmDomain, ArchiveIndexFile stateFile, GPOVResult& msgResult)
Application Event Log:
Log Name: Application
Source: Group Policy Management
Date: 1/8/2019 12:41:16 AM
Event ID: 2004
Task Category: None
Level: Error
Keywords: Classic
User: SYSTEM
Computer: LitwareRootDC01.Litware.com
Description:
Backup of GPO failed. Error [The user name or password is incorrect.
].
Details -
Source GPO:
DisplayName: <Empty GPO>
ID: {063B4D92-4EFD-4C80-9785-EA59A9B73DC0}
Domain: Litware.com
Backup:
Directory: C:\ProgramData\Microsoft\AGPM
Instance : {35D9CD0C-6E33-4FE9-9490-1E214F79E154}
Comment :
System Event Log:
Log Name: System
Source: LsaSrv
Date: 1/8/2019 12:41:16 AM
Event ID: 40961
Task Category: None
Level: Warning
Keywords:
User: SYSTEM
Computer: LitwareRootDC01.Litware.com
Description:
The Security System could not establish a secured connection with the server cifs/LitwareRootDC01/Litware.com@Litware.com. No authentication protocol was available.