8

Cortana is Microsoft's intelligent personal assistant for Windows Phone 8.1, Microsoft Band, and Windows 10.

I am interested in how can someone turn on their Xbox One by using Cortana voice command. Unfortunately when I was searching in the topic I only found articles about how to turn on Cortana on the Xbox itself. In my case Cortana should listen on my PC running Windows 10.

If possible I want to avoid serious scripting and such for first and I hope that there is a more sophisticated solution, if only because all of these are Microsoft products.

  • 2
    I assume you log-in on the same account with your Xbox and PC? – Mast Jan 8 '17 at 18:46
8

Wake-on-LAN is relatively new for the Xbox One. This feature was released with the August update.

Luckily, you don't have to script yourself a solution. Others have already done the work for you:

  • Xbox on by arcreative: Xbox One power control from CLI or Node.JS application.
  • Xbox remote power by Schamper: A script that can turn your Xbox One on remotely.

If you're interested in figuring out something for yourself, this technet article is a must-read.

I must admit, I'm a little disappointed I couldn't find a completely integrated method of communicating with your Xbox One from a PC or phone with Windows 10. Both PC and Windows phone have an Xbox app after all.

'Teaching' Cortana to recognize and execute custom scripts has been explained in this Stack Overflow answer.

| improve this answer | |
  • All this is only possible when Xbox is set to "instant-on"? Or are there solutions wo take it up from power saving mode? – ciB Dec 17 '17 at 13:18
  • @ciB I don't know, but I'd hazard a guess and say it needs to be on 'instant-on'. It has to accept and act on 'power on' packets. I can imagine it won't in power saving mode, but I'm not sure. – Mast Dec 17 '17 at 13:46
4

Without Cortana

  1. By using the Xbox button on your controller if your controller is paired to your Xbox One.

  2. By using the official Windows 10 Microsoft Xbox app. To make this work, you have to connect your Xbox One to the Windows 10 app by following these steps. If streaming works, your Xbox One is connected to your Windows 10 Xbox app. Now shutdown your Xbox One. You should still see your Xbox listed in the Windows 10 Xbox app. It now should also offer you an option to turn on your Xbox One see screenshot below), and there you have it! :)

Notice: I only tested this on my Xbox One connected by LAN, Xbox One configured in high energy mode and with the Windows 10 Xbox app version 38.38.14002.00000. Comments if this works on WiFi and on low energy settings are welcome.

A screenshot (in dutch) of what this looks like:

enter image description here

With Cortana

I don't think Cortana supports waking your xbox by using your voice nativly so you need a 3th party script or app. The script or app should use the wake-on-lan protocol and target your xbox one MAC adres to wake it. This guy has a video about cortana waking his pc, it should also work with your xbox one.

Another option might want to look into is using IFTT with the Cortana integration and some other wake-on-lan integration. This is an example to wake your xbox one by using Google Assistant. You might create your own working applet without any scripting at all.

| improve this answer | |
  • Welcome to the site! Is there a way to use Cortana with the methods you're suggesting, as Bence asked in the question? I think the question was specifically thinking about voice control if possible. – Aurora0001 Mar 3 '18 at 10:34
  • 1
    Ah I missed that important point in the question and title, how stupid of me. :) I think Windows 10 with cortana does not offer the functionality to wake your Xbox One remotely so you're likely to need a script. However... you should be able to wake your Xbox One with a simple Wake-On-Lan signal that works on other devices too, this is an opening. This guy has a youtube tutorial how to implement Wake-On-Lan with Cortana for his PC but it should work well on a Xbox One too if you know the MAC adres of your Xbox One: youtube.com/watch?v=y6xTyuLixKg – scre_www Mar 3 '18 at 14:44
  • 1
    @Aurora0001 thx I updated my post. Left the original stuff in too since it might be usefull for somebody. – scre_www Mar 6 '18 at 19:15
3

For reference here is some C# Universal Windows Platform (UWP) code that I wrote to wake up an Xbox One:

public static async Task XboxWake(IPAddress ipAddress, string liveId, int retries = 5)
{
    using (var socket = new DatagramSocket())
    {
        var connectionProfile = Windows.Networking.Connectivity.NetworkInformation.GetInternetConnectionProfile();
        await socket.BindServiceNameAsync("", connectionProfile.NetworkAdapter);

        using (var stream = await socket.GetOutputStreamAsync(new HostName(ipAddress.ToString()), "5050"))
        {
            using (var writer = new DataWriter(stream))
            {
                for (int retry = 0; retry < retries; retry++)
                {
                    byte[] payload = new byte[3 + liveId.Length];
                    payload[0] = 0x00;
                    payload[1] = (byte)liveId.Length;

                    for (int i = 0; i < liveId.Length; i++)
                        payload[i + 2] = (byte)liveId[i];
                    payload[payload.Length - 1] = 0x00;

                    byte[] header = new byte[6];
                    header[0] = 0xdd;
                    header[1] = 0x02;
                    header[2] = 0x00;
                    header[3] = (byte)payload.Length;
                    header[4] = 0x00;
                    header[5] = 0x00;

                    using (var ms = new MemoryStream(header.Length + payload.Length))
                    {
                        ms.Write(header, 0, header.Length);
                        ms.Write(payload, 0, payload.Length);

                        writer.WriteBytes(ms.ToArray());
                    }
                    await writer.StoreAsync();

                    await Task.Delay(1000);
                }
            }
        }
    }
}

(GitHub Gist link of the above code)

| improve this answer | |
2

I have developed a (paid) app called XBoot One that you can use it to turn on your Xbox remotely both in Android and Windows. It's not integrated with Cortana yet but it will be in future releases.

Play Store Link

It will be in Microsoft Store soon.

| improve this answer | |
  • 4
    Are you the developer of this app? If so, you need to disclose this in your answer, particularly since this app is paid. Sharing links to relevant products you're involved with isn't a problem, but doing it without making it clear could be seen as improper. – Aurora0001 Dec 23 '17 at 12:51
  • 2
    Thanks for your comment. I just updated my answer to address the point you kindly made. – mdx0111 Dec 27 '17 at 8:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.