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