Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a config file based on an existing machine #876

Open
andy-yappy opened this issue May 25, 2023 · 4 comments
Open

Create a config file based on an existing machine #876

andy-yappy opened this issue May 25, 2023 · 4 comments
Labels
Area-Machine-Config Related to the machine configuration feature Area-Machine-Config-DSC Related to WinGet DSC configuration in machine config flow Issue-Feature New feature or request Needs-PM Needs PM input Priority-2

Comments

@andy-yappy
Copy link

Suggested new feature or improvement

It would be great to be able to generate a yml file based on my existing machine, a UI that lists the installed apps, you select the ones that you want in the script and the yml is generated for you

Scenario

As I already have an existing machine that I am happy with the setup, generating a yml means I can rebuild if needed or start a new machine with the same setup, or new team members can get my setup with minimal effort

Additional details

It would also help get people started with a script

@andy-yappy andy-yappy added the Issue-Feature New feature or request label May 25, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label May 25, 2023
@AmelBawa-msft AmelBawa-msft added Area-Machine-Config Related to the machine configuration feature and removed Needs-Triage New issue that the core contributors need to triage labels May 25, 2023
@florelis
Copy link
Member

If you only need to install apps, winget has an export feature that can do that for you, but from the CLI instead of UI.
From the terminal you run winget export apps.json and that creates the file apps.json with everything winget detected installed on your system. Then you can copy that file to another machine and do winget import apps.json and it will install all the apps listed, and you can edit it to remove apps you don't need.

There are a couple of caveats though. winget will sometimes not be able to match an installed app to an app available in it's catalog. It also doesn't preserver installation settings. And it only does app install, not other types of configurations.

@localden
Copy link
Member

localden commented May 26, 2023

@mathewleeza mathewleeza added the Needs-Triage New issue that the core contributors need to triage label May 26, 2023
@denelon
Copy link
Contributor

denelon commented May 30, 2023

@denelon
Copy link
Contributor

denelon commented May 30, 2023

Over at the WinGet CLI repository we're looking at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Machine-Config Related to the machine configuration feature Area-Machine-Config-DSC Related to WinGet DSC configuration in machine config flow Issue-Feature New feature or request Needs-PM Needs PM input Priority-2
Projects
None yet
Development

No branches or pull requests

8 participants