Sample Code!
Before I started "Working with Intel AMT," the first thing I wanted to learn was how to turn a computer on and off. Sounds pretty simple, right? Well, not really.
The RemoteControl sample provided in the SDK wasn't very easy to understand. It took me awhile just to figure out how to run it with the correct command-line arguments! When I did get it running, I noticed that it provided a lot more functionality than I actually needed. I didn't need to set boot options, I just wanted to shut the computer off! Trying to understand 1016 lines of code (I'm not exaggerating) wasn't fun either.
So here's my version of the RemoteControl sample. You'll see a lot of the same concepts discussed in one of my recent blog posts (Get function, GetEndpointReference function, etc). You'll also see how the Invoke function works. The sample provides nowhere near as much functionality as the original, but it's a lot easier to understand. Remember to check for updates reguarly and leave a comment in that box down there.
Click here to download the sample (C#, Visual Studio 2008).
Before I started "Working with Intel AMT," the first thing I wanted to learn was how to turn a computer on and off. Sounds pretty simple, right? Well, not really.
The RemoteControl sample provided in the SDK wasn't very easy to understand. It took me awhile just to figure out how to run it with the correct command-line arguments! When I did get it running, I noticed that it provided a lot more functionality than I actually needed. I didn't need to set boot options, I just wanted to shut the computer off! Trying to understand 1016 lines of code (I'm not exaggerating) wasn't fun either.
So here's my version of the RemoteControl sample. You'll see a lot of the same concepts discussed in one of my recent blog posts (Get function, GetEndpointReference function, etc). You'll also see how the Invoke function works. The sample provides nowhere near as much functionality as the original, but it's a lot easier to understand. Remember to check for updates reguarly and leave a comment in that box down there.
Click here to download the sample (C#, Visual Studio 2008).

Comments
Yay for more C# / .NET development blog entries! :)
-Trevor Sullivan
(now that I'm actually logged in)
Yay for more C# / .NET development blog entries! :)
-Trevor Sullivan
While executing following i recieve the error.
RemoteControl.exe -c -user admin -pass MyPass46! http://192.168.2.220:16992/RemoteControlService
Calling function GetRemoteControlCapabilities...
Error: failed while calling GetRemoteControlCapabilities
SOAP failure: error code = 25
Thanks.
Are you using my sample or the sample included in the SDK?
Hi Stephen,
I do use RemoteControl.exe from AMT SDK to remotely Power On/ Off AMT devices. Looks like that exe has the capability to send ASF commands too. Do you have any knowledge if we can actually send ASF special commands via RemoteControl.exe in AMT SDK.
Thanks
Sayantan
Hi
I trying to build an aplication in a room control system (AMX).
I don't have windows i only can connect with the PC throught a port. Then I can send some commands.
But when I connect with the PC trought 16992 port i don't know how i have to identificate and what commands i have to send.
Have you any information about this?
Regards, Ricardo.