Michael Meadow 641ce965a4
README.md
2024-01-22 01:20:44 -08:00
2024-01-22 00:59:54 -08:00
2024-01-22 00:55:31 -08:00
2024-01-22 01:20:44 -08:00

Windows-Game-Mode

The Enable Game Mode script makes Windows boots straight into Steam Big Picture without displaying any explorer UI elements to ensure a Game Console like experience on Windows. I made this because I have a Steam Deck and I want the experience to mirror that of Steam OS as closely as possible. However, this will work on any Windows PC, the commands are not specific to the Steam Deck.

Here's a breakdown of what each part of the script does:

1. Set Steam Big Picture as Default Shell:

Disables echoing the command to the console (@echo off).

Enables the use of advanced scripting features (SETLOCAL EnableExtensions).

Changes the Windows shell from the default explorer.exe to Steam's Big Picture mode. It modifies the Windows Registry to make Steam.exe -bigpicture the default shell that launches upon user login.

2. Create and Set Up a Delayed Start Script for Explorer:

Defines paths for the Steam folder and Delayed Explorer Start script name.

Creates a batch file (DelayedExplorerStart.bat) that checks if the user is logged on. If the user is logged on, it sets the shell back to Windows Explorer (explorer.exe) after a delay, allowing Steam Big Picture to launch first.

After booting directly into Steam Big Picture, Explorer.exe is launched automatically so that the "Exit to Desktop" menu item in Steam Big Picture works as expected. You do not need to launch a shortcut from within Big Picture first in order to be able exit to the desktop.

3. Create a VBScript to Run the Batch File Silently:

A VBScript (RunBatchSilently.vbs) is created to run the DelayedExplorerStart.bat to suppress the command prompt window/run silently. This means the batch file will launch explorer in the background without opening a visible command prompt window over the Steam Big Picture UI.

4. Set Up a Scheduled Task to Run the DelayedExplorerStart.bat Script at Logon/bootup:

Creates an XML file to define a scheduled task. This task will trigger the VBScript at user logon.

Deletes any existing scheduled task with the same name and creates a new one using the XML configuration. This ensures that the DelayedExplorerStart.bat script runs every time the user logs on.

5. Enable Automatic Logon and Disable Boot UI:

Configures Windows to automatically log in with the current user account (AutoAdminLogon).

Sets an empty default password for automatic logon (DefaultPassword).

  1. The command "bcdedit.exe -set {globalsettings} bootuxdisabled on" disables the boot user interface (bootuxdisabled). This disables Windows Branded Boot, and therefore no Windows logo is displayed when the OS boots.

Revert Script

The Revert script reverts all changes, which resets the Windows configuration to what it was before the Enable Game Mode script was run. If the script fails to revert any of the changes, they can be manually removed. If needed, delete the Scheduled Task created in Task Scheduler called "RunDelayedExplorerStart". This script currently creates the scripts the scheduled task runs and the XML file for the scheduled task inside the default Steam Installation Directory, "C:\Program Files (x86)\Steam".

Description
Windows boots straight into Steam Big Picture or Playnite without displaying any Explorer UI elements. GamesDows is intended to emulate Steam OS's "Game Mode" as closely as possible.
Readme GPL-3.0 583 KiB
Languages
Batchfile 100%