I am trying to execute a native ( db2 ) command on couple of remote servers.
The actual command is "db2diag -A"
When I execute the command from remote desktop the command runs successful.
But when I run it via script block on Invoke-Command or PSSession, the tool ends without any error or warnings.
I was able to confirm that the native command is invoked using process monitor. I have been able to successfully execute other utilities from DB2 but not this one.
I read the gotchas on certain functions that depend on user profile not being available in remoting, but I am hoping that is not the case here, considering the tool is just rotating the logs.
Any suggestions on how to diagnose this further or resolve this issue?
Appreciate your support
Thank you Don for your thoughts. I will follow-up with the vendor on this.
Would you have any pointers to resources on this – to determine if the executable indeed requires a full user logon session or any diagnostic tools that might provide additional insight? I understand this could be out of scope, just checking.