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

Unable to Create New Build Task with Only Templates #53

Closed
bmkaiser opened this issue Jun 15, 2021 · 2 comments
Closed

Unable to Create New Build Task with Only Templates #53

bmkaiser opened this issue Jun 15, 2021 · 2 comments

Comments

@bmkaiser
Copy link

I'm new to OSDBuilder, but I wanted to create a global build template. However, I get a message saying that no build tasks have can be found.

Version Information:

PS > Get-OSDBuilder
OSDBuilder 21.5.27.1 | OSDSUS 21.6.8.1 | OSD 21.6.4.1

Output:

PS > New-OSBuild
VERBOSE: OSDSUS 21.6.8.1 Windows http://osdsus.osdeploy.com/release
========================================================================================
New-OSBuild PROCESS
WARNING: OSBuild Task was not selected or found . . . Exiting!

Templates Directory:

PS > Get-ChildItem -Path $SetOSDBuilderPathTemplates OSBuild*.json

    Directory: C:\OSDBuilder\Templates

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
-a----        6/15/2021   3:15 PM           4420 OSBuild Global 20H2 Customization.json

Command used to create template:

PS > $name = 'Global 20H2 Customization'
PS > New-OSBuildTask -TaskName $name -CustomName $name -ContentScripts -ContentStartLayout -SaveAs Template

Template JSON:

{
    "TaskType":  "OSBuild",
    "TaskVersion":  "21.5.27.1",
    "TaskGuid":  "e8b39d2a-8951-43cf-af8d-df35478e3d2d",
    "TaskName":  "Global 20H2 Customization",
    "CustomName":  "Global 20H2 Customization",
    "OSMFamily":  "Client Enterprise x64 19042 en-US",
    "OSMGuid":  "abe957c1-9a9d-4f44-ae1a-d168493bef91",
    "Name":  "Windows 10 Enterprise x64 20H2 19042.1052",
    "ImageName":  "Windows 10 Enterprise",
    "Arch":  "x64",
    "ReleaseId":  "20H2",
    "UBR":  "19042.1052",
    "Languages":  [
                      "en-US"
                  ],
    "EditionId":  "Enterprise",
    "InstallationType":  "Client",
    "MajorVersion":  "10",
    "Build":  "19041",
    "CreatedTime":  "\/Date(1620254927147)\/",
    "ModifiedTime":  "\/Date(1623781179737)\/",
    "ContentPacks":  null,
    "EnableNetFX3":  "False",
    "WinPEAutoExtraFiles":  "False",
    "WinPEOSDCloud":  "False",
    "WinREWiFi":  "False",
    "RemoveAppxProvisionedPackage":  null,
    "RemoveWindowsCapability":  null,
    "RemoveWindowsPackage":  null,
    "DisableWindowsOptionalFeature":  null,
    "EnableWindowsOptionalFeature":  null,
    "Drivers":  null,
    "ExtraFiles":  null,
    "Scripts":  [
                    "Scripts\\Remove-Windows10Bloat.ps1"
                ],
    "StartLayoutXML":  "StartLayout\\Windows10StartLayout.xml",
    "UnattendXML":  "",
    "AddWindowsPackage":  null,
    "AddFeatureOnDemand":  null,
    "WinPEADKPE":  null,
    "WinPEADKRE":  null,
    "WinPEADKSE":  null,
    "WinPEDaRT":  "",
    "WinPEDrivers":  null,
    "WinPEExtraFilesPE":  null,
    "WinPEExtraFilesRE":  null,
    "WinPEExtraFilesSE":  null,
    "WinPEScriptsPE":  null,
    "WinPEScriptsRE":  null,
    "WinPEScriptsSE":  null,
    "LangSetAllIntl":  "",
    "LangSetInputLocale":  "",
    "LangSetSKUIntlDefaults":  "",
    "LangSetSetupUILang":  "",
    "LangSetSysLocale":  "",
    "LangSetUILang":  "",
    "LangSetUILangFallback":  "",
    "LangSetUserLocale":  "",
    "LanguagePack":  null,
    "LanguageInterfacePack":  null,
    "LocalExperiencePacks":  null,
    "LanguageFeature":  null,
    "LanguageCopySources":  null
}
@OSDeploy
Copy link
Owner

Try New-OSBuild -SkipTask

@bmkaiser
Copy link
Author

Thank you, @OSDeploy. Adding the -SkipTask parameter fixed this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants