Skip to content

Commit

Permalink
support 24H2
Browse files Browse the repository at this point in the history
  • Loading branch information
itsNileshHere committed Feb 6, 2025
1 parent 8d217c0 commit 3a8ec2d
Show file tree
Hide file tree
Showing 2 changed files with 578 additions and 299 deletions.
73 changes: 73 additions & 0 deletions autounattend.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,77 @@
</UserData>
</component>
</settings>

<!-- Removing Gamebar Popup post install -->
<!-- Somehow, implementing it directly on the image was causing corruption -->
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<RegisteredOwner></RegisteredOwner>
<RegisteredOrganization></RegisteredOrganization>
</component>
<component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<RunSynchronous>
<RunSynchronousCommand wcm:action="add">
<Order>1</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebar" /v "NoOpenWith" /t REG_SZ /d "" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>2</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebar" /v "(Default)" /t REG_SZ /d "URL:ms-gamebar" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>3</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebar" /v "URL Protocol" /t REG_SZ /d "" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>4</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebar\shell\open\command" /ve /t REG_SZ /d "%SystemRoot%\System32\systray.exe" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>5</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebarservices" /v "NoOpenWith" /t REG_SZ /d "" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>6</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebarservices" /v "(Default)" /t REG_SZ /d "URL:ms-gamebarservices" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>7</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebarservices" /v "URL Protocol" /t REG_SZ /d "" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>8</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamebarservices\shell\open\command" /ve /t REG_SZ /d "%SystemRoot%\System32\systray.exe" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>9</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamingoverlay" /v "NoOpenWith" /t REG_SZ /d "" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>10</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamingoverlay" /v "(Default)" /t REG_SZ /d "URL:ms-gamingoverlay" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>11</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamingoverlay" /v "URL Protocol" /t REG_SZ /d "" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>12</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Classes\ms-gamingoverlay\shell\open\command" /ve /t REG_SZ /d "%SystemRoot%\System32\systray.exe" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>13</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Microsoft\WindowsRuntime\Server\Windows.Gaming.GameBar.Internal.PresenceWriterServer" /v "ExePath" /t REG_SZ /d "%SystemRoot%\System32\systray.exe" /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>14</Order>
<Path>cmd.exe /c reg add "HKLM\SOFTWARE\Microsoft\WindowsRuntime\ActivatableClassId\Windows.Gaming.GameBar.PresenceServer.Internal.PresenceWriter" /v ActivationType /t REG_DWORD /d 0 /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
<RunSynchronousCommand wcm:action="add">
<Order>15</Order>
<Path>cmd.exe /c reg add "HKLM\SYSTEM\CurrentControlSet\Services\xbgm" /v "Start" /t REG_DWORD /d 4 /f 1>nul 2>nul</Path>
</RunSynchronousCommand>
</RunSynchronous>
</component>
</settings>
</unattend>
Loading

0 comments on commit 3a8ec2d

Please sign in to comment.