How To

winget configure: Set Up a Windows 11 Machine from a YAML File

You can describe a Windows 11 workstation in one YAML file and let winget configure install the apps, flip the settings and report which parts already match. Run the same file again and nothing is reinstalled: each unit tests the machine first and only changes what has drifted.

Original content from computingforgeeks.com - post 180788

This guide builds a winget configuration file that installs Git, PowerShell 7 and VS Code, enables Developer Mode and shows file extensions. You will validate it, test the machine, apply it, re-run it to prove it is idempotent, and then rewrite it in the DSC v3 format that winget configure export now produces. I last ran it in October 2026 on a fresh Windows 11 24H2 (build 26100) VM with winget 1.29.380 and a local admin account.

Before you begin

The configure command ships inside winget itself, although on a fresh image winget may first need to update App Installer from the Store, as the next section shows. You need the following before you start:

  • Windows 11, or Windows 10 1809 and later. The lab machine ran Windows 11 Enterprise 24H2, build 26100.9457.
  • winget (App Installer) 1.6.2631 or later. If winget itself is missing, set it up first with our winget install and usage guide.
  • A local administrator account. Units marked securityContext: elevated trigger one UAC prompt at the start of the run.
  • Internet access to the winget CDN, the Microsoft Store and the PowerShell Gallery, because the DSC modules download on first use.

Open PowerShell as Administrator and check the winget build you have:

winget --info

The top of the output gives the winget version, the Windows build and the App Installer package version:

Windows Package Manager v1.29.380
© 2026 Microsoft. All rights reserved.

Windows: Windows.Desktop v10.0.26100.9457
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.29.380.0

Further down, the same output lists Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules. That folder is where winget caches the PowerShell DSC modules it pulls from the Gallery, so the first run of any file is much slower than the second. If your machines sit behind a proxy that blocks the PowerShell Gallery, you will see the problem on that first run, because nothing in the file can resolve until the modules download. Check the proxy before you blame the YAML.

Choose a configuration file format

winget accepts two YAML layouts, and the difference matters as soon as you mix files from the docs with files you export yourself. Both use the .winget extension, and Microsoft’s authoring guide recommends keeping a project’s file at ./.config/configuration.winget in the repository.

ItemSchema 0.2 (PowerShell DSC)DSC v3 (dscv3 processor)
First line# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
Root nodeproperties: with assertions and resourcesresources: plus metadata.winget.processor
Resource nameMicrosoft.WinGet.DSC/WinGetPackageMicrosoft.WinGet/Package
Unit settings keysettings:properties:
What runs itPowerShell DSC modules from the Gallerythe dsc.exe engine (Microsoft.DSC 3.2.2 in the lab)
Written by configure export in 1.29.380NoYes

Start with schema 0.2 if you want assertions and the Microsoft.Windows.Developer resources such as DeveloperMode, because that is the combination this guide tested end to end. Use DSC v3 when you build files from winget configure export or want the built-in registry resource, since the export in 1.29.380 writes only the v3 layout. You cannot mix both layouts in one file, so pick one per file and keep your team on it. Both formats are covered below with files that ran on the lab machine.

Enable the configure command

On the fresh 24H2 image, validate, test and the apply step all stopped with the same message:

Extended features are not enabled. Run `winget configure --enable` to enable them.
exit code: -1978335127

To turn the configuration components on, run the command that the message names. It needs Microsoft Store access, so run it on a machine that can reach the Store, or your first configure run on a locked-down image will fail before it reads a single line of YAML:

winget configure --enable

Expect it to look stuck. On the lab VM the enable step and a validation run after it took about five and a half minutes together, and the enable call printed only one line and returned exit code 1:

Enabling extended features. Requires store access.
exit code: 1

Do not trust that exit code. The winget logs show the call running on App Installer 1.29.290 and the next command on 1.29.380, and every configure subcommand worked from then on. So the useful check is the version, not the return value: run winget --version, confirm you are past the build you started on, and move on to the file. If you script this step for many machines, test for the version rather than exit code 0, or your script will stop on a machine that is fine.

Write the configuration file

The file below uses schema 0.2. One assertion checks for Windows 11, and five resources install three packages and change two Explorer and developer settings. Create a working folder and open a new file in Notepad:

New-Item -ItemType Directory -Force C:\lab
notepad C:\lab\configuration.winget

Paste this configuration and save the file. It is the exact file used for every run in this guide:

# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
properties:
  assertions:
    - resource: Microsoft.Windows.Developer/OsVersion
      directives:
        description: Require Windows 11 (build 22000 or later)
        allowPrerelease: true
      settings:
        MinVersion: '10.0.22000'
  resources:
    - resource: Microsoft.WinGet.DSC/WinGetPackage
      id: git
      directives:
        description: Install Git
        securityContext: elevated
      settings:
        id: Git.Git
        source: winget
    - resource: Microsoft.WinGet.DSC/WinGetPackage
      id: pwsh
      directives:
        description: Install PowerShell 7
        securityContext: elevated
      settings:
        id: Microsoft.PowerShell
        source: winget
    - resource: Microsoft.WinGet.DSC/WinGetPackage
      id: vscode
      directives:
        description: Install Visual Studio Code
      settings:
        id: Microsoft.VisualStudioCode
        source: winget
    - resource: Microsoft.Windows.Developer/DeveloperMode
      directives:
        description: Enable Developer Mode
        allowPrerelease: true
        securityContext: elevated
      settings:
        Ensure: Present
    - resource: Microsoft.Windows.Developer/WindowsExplorer
      directives:
        description: Show file extensions and hidden files
        allowPrerelease: true
      settings:
        FileExtensions: Show
        HiddenFiles: Show
  configurationVersion: 0.2.0

Each block maps to one task, and a few keys decide how winget treats it:

  1. To stop the run on an unsupported machine, put the check under assertions. OsVersion fails the whole configuration on anything older than build 22000.
  2. To name the module and resource that does the work, use Module/Resource in the resource key. winget installs the module from the PowerShell Gallery on first use.
  3. To run a unit as admin, add securityContext: elevated. Leave it off for per-user settings such as WindowsExplorer, which writes to HKCU.
  4. To let another unit wait for this one, give it an id and reference that id from dependsOn.
  5. To allow prerelease modules, set allowPrerelease: true. The Microsoft.Windows.Developer module that resolved in the lab was 0.4.0.

The VS Code unit has no securityContext, so it runs as your user, and on the lab machine VS Code landed in the user scope under %LOCALAPPDATA%\Programs\Microsoft VS Code. That matters on shared machines, because each user who runs the file gets a separate copy and the next user sees nothing installed. Decide per package whether you want a user or a machine install before you roll the file out to a team.

Validate and preview the file

Validation catches YAML mistakes and broken references before anything touches the system, so run it every time you edit the file:

winget configure validate -f C:\lab\configuration.winget --disable-interactivity

A clean file returns one line and exit code 0:

Validation found no issues.

Next, preview what winget is about to do. The show subcommand resolves every module but changes nothing on the machine:

winget configure show -f C:\lab\configuration.winget --disable-interactivity

Read the output for the module source and the shield after the unit name. [PSGallery] means the module is not cached yet, and the shield marks the units that will run elevated:

OsVersion
  Require Windows 11 (build 22000 or later)
  Module: Microsoft.Windows.Developer by Microsoft Corporation [PSGallery]
    DSC Resource for Windows
  Settings:
    MinVersion: 10.0.22000
WinGetPackage🛡  [git]
  Install Git
  Module: Microsoft.WinGet.DSC by Microsoft Corporation [PSGallery]
    PowerShell Module with DSC resources related to WinGet configurations
  Settings:
    id: Git.Git
    source: winget
WinGetPackage🛡  [pwsh]
  Install PowerShell 7
  Module: Microsoft.WinGet.DSC by Microsoft Corporation [PSGallery]
    PowerShell Module with DSC resources related to WinGet configurations
  Settings:
    id: Microsoft.PowerShell
    source: winget
WinGetPackage [vscode]
  Install Visual Studio Code
  Module: Microsoft.WinGet.DSC by Microsoft Corporation [PSGallery]
    PowerShell Module with DSC resources related to WinGet configurations
  Settings:
    id: Microsoft.VisualStudioCode
    source: winget
DeveloperMode🛡
  Enable Developer Mode
  Module: Microsoft.Windows.Developer by Microsoft Corporation [PSGallery]
    DSC Resource for Windows
  Settings:
    Ensure: Present
WindowsExplorer
  Show file extensions and hidden files
  Module: Microsoft.Windows.Developer by Microsoft Corporation [PSGallery]
    DSC Resource for Windows
  Settings:
    FileExtensions: Show
    HiddenFiles: Show

The preview took 43 seconds on a clean machine because it fetched the module metadata. After the first apply, the same listing shows [Local] and the GitHub source of each module instead. Count the shields before you run anything on a user’s laptop, because every shield means the run needs admin rights and the user will see a UAC prompt.

Test the machine before you apply

The test subcommand runs only the Test method of each resource. It tells you what an apply would change, and it is safe to run on a machine you do not own yet:

winget configure test -f C:\lab\configuration.winget --accept-configuration-agreements --disable-interactivity

After the unit listing and the agreement text, the result block shows one line per unit. On the clean VM, only the OS assertion passed:

OsVersion
  System is in the described configuration state.
WinGetPackage🛡  [git]
  System is not in the described configuration state.
WinGetPackage🛡  [pwsh]
  System is not in the described configuration state.
WinGetPackage [vscode]
  System is not in the described configuration state.
DeveloperMode🛡
  System is not in the described configuration state.
WindowsExplorer
  System is not in the described configuration state.
System is not in the described configuration state.
exit code: 1

Exit code 1 means drift was found, so you can use test as a compliance check in a script or a scheduled task without changing anything. This first test took 666 seconds. It was the first command to pull the Microsoft.WinGet.DSC and Microsoft.Windows.Developer modules into the module cache, and every listing after it shows them as [Local]. Expect the same delay on every new machine, so plan for it in any provisioning time budget you give a user.

Apply the winget configuration

Apply the file with the plain configure verb. Pass --accept-configuration-agreements whenever you also pass --disable-interactivity, because without it winget prints the agreement and exits with code -1978286069 without applying anything:

winget configure -f C:\lab\configuration.winget --accept-configuration-agreements --disable-interactivity

The run reprints the unit listing, then reports each unit as it finishes. The final line is what a script should check:

OsVersion
  Unit successfully applied.
WinGetPackage🛡  [git]
  Unit successfully applied.
WinGetPackage🛡  [pwsh]
  Unit successfully applied.
WinGetPackage [vscode]
  Unit successfully applied.
DeveloperMode🛡
  Unit successfully applied.
WindowsExplorer
  Unit successfully applied.
Configuration successfully applied.
exit code: 0

The first apply took about 400 seconds on the console timer, most of it spent downloading and running three installers. winget records each run in its history, and you can list it to get the run identifier:

winget configure list

Each apply of the file gets its own GUID, with the state and the path it came from:

Identifier                             Name                 State     Origin
-------------------------------------------------------------------------------------------------
{C55632F9-D5AB-4799-BAD5-34DD73747B04} configuration.winget Completed C:\lab\configuration.winget
{5C964974-F180-44ED-9274-CC9412C15AC7} configuration.winget Completed C:\lab\configuration.winget

To see the result code of every unit in one run, pass that GUID to -h:

winget configure list -h {C55632F9-D5AB-4799-BAD5-34DD73747B04}

The detail view gives the start and end time of the run and a 0x00000000 result for each unit:

Field         Value
----------------------------------------------------
Identifier    {C55632F9-D5AB-4799-BAD5-34DD73747B04}
Name          configuration.winget
Origin        C:\lab
Path          C:\lab\configuration.winget
State         Completed
First Applied 2026-10-31 03:47:27.000
Apply Started 2026-10-31 03:47:27.000
Apply Ended   2026-10-31 03:53:58.000

Unit                   State     Result
-------------------------------------------
OsVersion              Completed 0x00000000
WinGetPackage [git]    Completed 0x00000000
WinGetPackage [pwsh]   Completed 0x00000000
WinGetPackage [vscode] Completed 0x00000000
DeveloperMode          Completed 0x00000000
WindowsExplorer        Completed 0x00000000

A non-zero result in that table points you straight at the unit that failed, which is faster than scrolling back through the console output. The history also survives reboots, so you can check days later which file was applied to a machine and whether every unit completed.

Verify what changed

Check the result from outside winget too, so you know the resources did what their names say. Start with the two registry values that the Developer Mode and Explorer units manage:

Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock | Select-Object AllowDevelopmentWithoutDevLicense
Get-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced | Select-Object HideFileExt,Hidden

Developer Mode is on, and file extensions and hidden files are both visible:

AllowDevelopmentWithoutDevLicense
---------------------------------
                                1

HideFileExt Hidden
----------- ------
          0      1

Next, ask VS Code and Git for their versions. Call both by full path, so the check does not depend on what your current session has in PATH:

& "$env:LOCALAPPDATA\Programs\Microsoft VS Code\bin\code.cmd" --version
& 'C:\Program Files\Git\cmd\git.exe' --version

VS Code reports 1.143.1 with its commit and architecture, and Git reports 2.56:

1.143.1
e646868227c3e3a9e3f24277c8c7220be42c0be7
x64
git version 2.56.0.windows.4

PowerShell 7 is not under C:\Program Files\PowerShell\7. The Microsoft.PowerShell id resolved to the MSIX package, version 7.6.9.0, so pwsh runs from %LOCALAPPDATA%\Microsoft\WindowsApps. Scripts that hard-code the MSI path will fail with a “not recognized” error, which is what happened on the first verification pass here. Call pwsh by name, because the WindowsApps alias is already on your PATH.

Re-run the file to prove idempotence

A desired state file is only useful if you can run it on a machine that is already set up. Run the exact same apply command again:

winget configure -f C:\lab\configuration.winget --accept-configuration-agreements --disable-interactivity

The console reports every unit as applied again, but the second run finished in 14.5 seconds against 400 seconds for the first:

winget configure re-run in an elevated PowerShell window on Windows 11 24H2 showing every unit successfully applied

“Unit successfully applied” does not mean anything was installed. To see what winget actually did, re-run with --verbose-logs and search the newest log in the DiagOutputDir folder that winget --info listed:

winget configure -f C:\lab\configuration.winget --accept-configuration-agreements --disable-interactivity --verbose-logs
$log = Get-ChildItem "$env:LOCALAPPDATA\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-*.log" | Sort-Object LastWriteTime | Select-Object -Last 1
Select-String -Path $log.FullName -Pattern 'Test|Set|Get' -CaseSensitive

Every resource got a Test call and none got a Set, because each Test returned true. The first three lines are the invocation and a module check, and each Test call is paired with a matching done line:

2026-10-31 05:08:51.462 <I> [CLI ] WinGet invoked with arguments: 'configure' '-f' 'C:\lab\configuration.winget' '--accept-configuration-agreements' '--disable-interactivity' '--verbose-logs'
2026-10-31 05:08:53.638 <V> [CONF] Validating module: PowerShellGet ...
2026-10-31 05:09:00.178 <V> [CONF] Validating module: PowerShellGet ...
2026-10-31 05:09:01.337 <V> [CONF] Invoking `Test` for resource: Microsoft.Windows.Developer/OsVersion...
2026-10-31 05:09:04.963 <V> [CONF] ... done invoking `Test`.
2026-10-31 05:09:05.642 <V> [CONF] Invoking `Test` for resource: Microsoft.WinGet.DSC/WinGetPackage...
2026-10-31 05:09:07.866 <V> [CONF] ... done invoking `Test`.
2026-10-31 05:09:08.190 <V> [CONF] Invoking `Test` for resource: Microsoft.WinGet.DSC/WinGetPackage...
2026-10-31 05:09:08.632 <V> [CONF] ... done invoking `Test`.
2026-10-31 05:09:08.922 <V> [CONF] Invoking `Test` for resource: Microsoft.WinGet.DSC/WinGetPackage...
2026-10-31 05:09:09.290 <V> [CONF] ... done invoking `Test`.
2026-10-31 05:09:09.583 <V> [CONF] Invoking `Test` for resource: Microsoft.Windows.Developer/DeveloperMode...
2026-10-31 05:09:09.875 <V> [CONF] ... done invoking `Test`.
2026-10-31 05:09:10.212 <V> [CONF] Invoking `Test` for resource: Microsoft.Windows.Developer/WindowsExplorer...
2026-10-31 05:09:10.507 <V> [CONF] ... done invoking `Test`.

Idempotence also means drift gets repaired. To check that, hide file extensions again by hand, which is the kind of change a user or an app installer makes:

Set-ItemProperty HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced -Name HideFileExt -Value 1
winget configure test -f C:\lab\configuration.winget --accept-configuration-agreements --disable-interactivity

The test now singles out WindowsExplorer and exits with code 1 in 20 seconds. The packages and Developer Mode still pass:

OsVersion
  System is in the described configuration state.
WinGetPackage🛡  [git]
  System is in the described configuration state.
WinGetPackage🛡  [pwsh]
  System is in the described configuration state.
WinGetPackage [vscode]
  System is in the described configuration state.
DeveloperMode🛡
  System is in the described configuration state.
WindowsExplorer
  System is not in the described configuration state.
System is not in the described configuration state.
exit code: 1

Running the apply command again fixed the value in 14 seconds, and HideFileExt read 0 afterwards. The packages were already in place, so the repair cost seconds, not the six minutes of the first build. You can turn that into a simple loop:

  1. To find drift, schedule winget configure test with the same flags and record its exit code.
  2. To ignore a clean machine, do nothing when the exit code is 0.
  3. To repair a drifted machine, run the apply command when the exit code is 1, then run test once more and expect 0.

Because a clean test makes no changes, you can run it as often as you like without disturbing the user.

Write a DSC v3 configuration file

The DSC v3 format replaces the PowerShell modules with resources that the dsc.exe engine runs, including a native registry resource. This file installs Git and 7-Zip, shows file extensions and enables long paths. Open a new file:

notepad C:\lab\workstation-fixed.dsc.winget

Add the following content. Use this exact $schema URL, for the reason given after the file:

$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
  winget:
    processor:
      identifier: dscv3
resources:
  - name: git
    type: Microsoft.WinGet/Package
    properties:
      id: Git.Git
      source: winget
    metadata:
      description: Install Git
      winget:
        securityContext: elevated
  - name: 7zip
    type: Microsoft.WinGet/Package
    properties:
      id: 7zip.7zip
      source: winget
    metadata:
      description: Install 7-Zip
      winget:
        securityContext: elevated
  - name: show-file-extensions
    type: Microsoft.Windows/Registry
    properties:
      keyPath: HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
      valueName: HideFileExt
      valueData:
        DWord: 0
    metadata:
      description: Show file extensions in Explorer
  - name: long-paths
    type: Microsoft.Windows/Registry
    properties:
      keyPath: HKLM\SYSTEM\CurrentControlSet\Control\FileSystem
      valueName: LongPathsEnabled
      valueData:
        DWord: 1
    metadata:
      description: Allow paths longer than 260 characters
      winget:
        securityContext: elevated

The first version of this file used the shorter https://aka.ms/dsc/schemas/v3/bundled/config/document.json URL from the DSC documentation. winget 1.29.380 rejected it before running a single unit, with or without dsc.exe installed. The GitHub URL above is the one winget configure export writes, and it worked first time. Apply the file the same way as before:

winget configure -f C:\lab\workstation-fixed.dsc.winget --accept-configuration-agreements --disable-interactivity

Unit names now carry the resource type and the name you gave them, and the shield still marks elevated units:

Microsoft.WinGet/Package🛡  [git]
  Unit successfully applied.
Microsoft.WinGet/Package🛡  [7zip]
  Unit successfully applied.
Microsoft.Windows/Registry [show-file-extensions]
  Unit successfully applied.
Microsoft.Windows/Registry🛡  [long-paths]
  Unit successfully applied.
Configuration successfully applied.
exit code: 0

The first apply took 136 seconds and the re-run took 70. The Windows Installer log shows exactly one 7-Zip install, at 05:04 during the first run, and no installer activity during the second, so the v3 package resource also tests before it acts. A winget configure test afterwards reported all four units in the described state with exit code 0. The v3 re-run is still slower than the 14.5 seconds of the schema 0.2 file, so budget more time for v3 files on a fleet.

You do not have to install the DSC engine yourself. With Microsoft.DSC removed, a test run on this file installed it first and then carried on:

Desired State Configuration package not found on the system. Installing the package...
Starting package install...
Successfully installed

To pin the engine yourself, install it with winget install --id Microsoft.DSC --source winget. The lab got DSC v3 version 3.2.2 that way.

Export a configuration from a set-up machine

Instead of writing package units by hand, you can export them from a machine that already has the apps. The --package-id option exports one package, and --all exports everything winget can match:

winget configure export -o C:\lab\exported.winget --package-id Git.Git --disable-interactivity
Get-Content C:\lab\exported.winget

The exported file is DSC v3, and it adds a source unit that the package depends on:

# Created using winget configure export 1.29.380
# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.3
$schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json
metadata:
  winget:
    processor:
      identifier: "dscv3"
resources:
- name: winget_Microsoft.PreIndexed.Package
  type: Microsoft.WinGet/Source
  metadata:
    description: "Configure winget_Microsoft.PreIndexed.Package"
    winget:
      securityContext: "elevated"
  properties:
    type: "Microsoft.PreIndexed.Package"
    trustLevel: "trusted"
    argument: "https://cdn.winget.microsoft.com/cache"
    name: "winget"
- name: winget_Git.Git
  type: Microsoft.WinGet/Package
  metadata:
    description: "Install Git.Git"
  dependsOn:
  - winget_Microsoft.PreIndexed.Package
  properties:
    id: "Git.Git"
    source: "winget"

Treat an export as a starting point. Package units carry no version, so a new machine gets the current release while an existing one passes with whatever version it has. Before you share an exported file, work through it in this order:

  1. To keep the file portable, remove packages you do not want on every machine, such as drivers and vendor tools.
  2. To review settings, read every non-package unit. --package-id writes only the package and its source, but --all also wrote winget UserSettingsFile and AdminSettings units, a RunCommandOnSet unit and a WindowsSettings unit with DeveloperMode and taskbar values on the lab machine.
  3. To catch mistakes early, run winget configure validate and then test on a second machine.
  4. To share it, commit the file next to your project as .config/configuration.winget.

If you manage Windows servers as well, our Ansible for Windows Server guide covers the push model for the same kind of state.

Fix winget configure errors

Every error below came up on the lab machine, with the exact text winget printed.

Configuration file version https://aka.ms/dsc/schemas/v3/bundled/config/document.json is not known

winget exits with code -1978286076 when it does not recognise the $schema value of a DSC v3 file. Replace the line with $schema: https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/2023/08/config/document.json, which is what configure export writes, and run the file again.

The dependency `gitt` was not found within the configuration

A dependsOn entry points at an id that does not exist. winget configure validate catches this before any change, which is another reason to run it first. If you skip validation, the apply prints the same message under the dependent unit, ends with “Some of the configuration was not applied successfully” and exits with -1978286073.

Validation does not check package ids against the source. The same test file asked for Git.Gitt, and neither validate nor the apply named the misspelled id; both reported only the dependency. Run winget show <id> --source winget for each new package id before you add it.

0x80004005 : Unspecified error

Within an hour of winget configure --enable upgrading App Installer, both an apply and a test ended with “An unexpected error occurred while executing the command: 0x80004005 : Unspecified error”. The log traced it to ConfigurationSetProcessorFactoryRemoting.cpp(110), the step that starts the configuration processor. The same commands succeeded later with no change to the file, so retry once before you debug the YAML.

One or more of the source agreements were not agreed to

This appears on winget list or winget show with --disable-interactivity on a new profile, because the msstore source agreement has never been accepted. Add --accept-source-agreements once and later calls work without it. The configure command itself is not affected.

For a fresh build, follow the order that worked on the lab machine:

  1. Run winget configure --enable and confirm the version moved.
  2. Run validate, then show to count the elevated units.
  3. Run test to see what will change, then apply.
  4. Run test again and expect exit code 0.

If you build Windows lab VMs on KVM or Proxmox, install the VirtIO drivers on the Windows guest before you run the file. Once the base file passes, your machine is ready for RHEL or Fedora on WSL and WSL containers.

Keep reading

Create a Bootable Windows 11 USB and Install Windows 11 Windows Create a Bootable Windows 11 USB and Install Windows 11 Set Up a Samba Share on Windows 11 and Access It from Linux Networking Set Up a Samba Share on Windows 11 and Access It from Linux Windows 11 Installation on KVM with Virt-Manager KVM Windows 11 Installation on KVM with Virt-Manager Install Grok Build on Windows 11 (Formerly Cursor) AI Install Grok Build on Windows 11 (Formerly Cursor) netsh Commands Cheat Sheet: Wi-Fi, Firewall, Port Proxy (PDF) Cheat Sheets netsh Commands Cheat Sheet: Wi-Fi, Firewall, Port Proxy (PDF) Dev Drive vs NTFS on Windows 11: Where the Speed Comes From Windows Dev Drive vs NTFS on Windows 11: Where the Speed Comes From

Leave a Comment

Press ESC to close