Image activities doesn't work sometimes in VM

Hi All,

I had developed my code using image automation and keyboard shortcuts where in bots has to login to another server and perform actions. Here, bot has to perform replication steps (Resume, Setup, Re synchronization) in Hyper- V manager.
But the problem that i’m facing is that my bot sometimes doesn’t work without any reason. Whereas sometimes it will works absolutely fine.
I’m unable to rectify the problem.

Can someone help me with the issue.