I'm sure I could help you if I could see everything that is actually happening but it is too difficult to really understand everything that you are doing, and in what order.
I also don't really understand what you are doing with hibernation or why. Why log out before hibernating? It seems to defeat the purpose. At that point you might as well just shut down the machine. Personally I don't know why anyone uses hibernation unless they have a laptop, but that is another matter.
If you would like to use TeamViewer to look at your problem together I would be happy to try.
I can probably make myself available to you tomorrow at some point. For today, I think it is too late.
I am sorry, I didn't mean to say that I logged out. What I meant to say was that I close the com before hibernating. Since I have an Arduino Uno it takes 30 seconds each time I re-open the serial port, so option B is out of the question. Option A I have tried, but if I don't close the port before hibernation I get an error with access denied to the COM-port. The second reason to why I have to close the port is that it won't work (access denied) at first after hibernation, but when I close it, and then open it it works.
Also, I just found out that what you said about admin-rights and hibernation was right. It was just a speculation from my side...
I would perhaps like to use teamviewer (I will see if I can tomorrow, my brother has a birthday party then). Whatever the outcome I thank you for the offer. If I can it can be anytime between 11-~17:00 Stockholm time, but if I can you can decide when (based upon your time zone).
By the way... Can we instead use skype screen-sharing if I can? I think that my parents won't allow me to use team-viewer with someone that the haven't met physically... And if I don't obey them they will take my computer away!
I can't believe that I haven't posted my xml yet! It will be included here, with the windows sceduler task to wake the computer, and the EventGhost side of things. I will also include the interface script for Arduino.
Oskar