示例#1
0
 public CTAC(OSSkuId ReportingSku,
             string ReportingVersion,
             MachineType MachineType,
             string FlightRing,
             string FlightingBranchName,
             string BranchReadinessLevel,
             string CurrentBranch,
             bool SyncCurrentVersionOnly,
             bool IsStore = false) : base()
 {
     BuildCTAC(ReportingSku, ReportingVersion, MachineType, FlightRing, FlightingBranchName, BranchReadinessLevel, CurrentBranch, SyncCurrentVersionOnly, IsStore);
 }
示例#2
0
        private void BuildCTAC(
            OSSkuId ReportingSku,
            string ReportingVersion,
            MachineType MachineType,
            string FlightRing,
            string FlightingBranchName,
            string BranchReadinessLevel,
            string CurrentBranch,
            bool SyncCurrentVersionOnly,
            bool IsStore = false
            )
        {
            string content       = "Mainline";
            int    flightEnabled = FlightRing == "Retail" ? 0 : 1;
            string App           = IsStore ? "WU_STORE" : "WU_OS";

            string InstallType  = "Client";
            string ReportingPFN = "Client.OS.rs2";
            string DeviceFamily = "Windows.Desktop";

            if (ReportingSku == OSSkuId.Holographic)
            {
                InstallType  = "FactoryOS";
                ReportingPFN = "HOLOLENS.OS.rs2";
                DeviceFamily = "Windows.Holographic";
            }
            else if (ReportingSku == OSSkuId.Lite)
            {
                InstallType  = "FactoryOS";
                ReportingPFN = "WCOSDevice0.OS";
                DeviceFamily = "Windows.Core";
            }
            else if (ReportingSku == OSSkuId.Andromeda)
            {
                InstallType  = "FactoryOS";
                ReportingPFN = "WCOSDevice1.OS";
                DeviceFamily = "Windows.Core";
            }
            else if (ReportingSku == OSSkuId.HubOS)
            {
                InstallType  = "FactoryOS";
                ReportingPFN = "WCOSDevice2.OS";
                DeviceFamily = "Windows.Core";
            }
            else if (ReportingSku.ToString().Contains("Server", StringComparison.InvariantCultureIgnoreCase) && ReportingSku.ToString().Contains("Core", StringComparison.InvariantCultureIgnoreCase))
            {
                InstallType  = "Server Core";
                ReportingPFN = "Server.OS";
                DeviceFamily = "Windows.Server";
            }
            else if (ReportingSku.ToString().Contains("Server", StringComparison.InvariantCultureIgnoreCase) && !ReportingSku.ToString().Contains("Core", StringComparison.InvariantCultureIgnoreCase))
            {
                InstallType  = "Server";
                ReportingPFN = "Server.OS";
                DeviceFamily = "Windows.Server";
            }
            else if (ReportingSku == OSSkuId.PPIPro)
            {
                DeviceFamily = "Windows.Team";
            }

            DeviceAttributes = "E:IsContainerMgrInstalled=1&" +
                               $"FlightRing={FlightRing}&" +
                               "TelemetryLevel=3&" +
                               "HidOverGattReg=C:\\WINDOWS\\System32\\DriverStore\\FileRepository\\hidbthle.inf_amd64_0fc6b7cd4ccbc55c\\Microsoft.Bluetooth.Profiles.HidOverGatt.dll&" +
                               $"AppVer={ReportingVersion}&" +
                               "IsAutopilotRegistered=0&" +
                               "ProcessorIdentifier=GenuineIntel Family 23 Model 1 Stepping 1&" +
                               "OEMModel=System Product Name&" +
                               "ProcessorManufacturer=GenuineIntel&" +
                               "InstallDate=1577722757&" +
                               "OEMModelBaseBoard=CROSSHAIR VI HERO&" +
                               $"BranchReadinessLevel={BranchReadinessLevel}&" +
                               "DataExpDateEpoch_20H1=0&" +
                               "IsCloudDomainJoined=0&" +
                               "Bios=2019&" +
                               "DchuAmdGrfxVen=4098&" +
                               "IsDeviceRetailDemo=0&" +
                               $"FlightingBranchName={FlightingBranchName}&" +
                               "OSUILocale=en-US&" +
                               $"DeviceFamily={DeviceFamily}&" +
                               "UpgEx_20H1=Green&" +
                               $"WuClientVer={ReportingVersion}&" +
                               $"IsFlightingEnabled={flightEnabled}&" +
                               $"OSSkuId={(int)ReportingSku}&" +
                               "GStatus_20H1=2&" +
                               $"App={App}&" +
                               $"CurrentBranch={CurrentBranch}&" +
                               "InstallLanguage=en-US&" +
                               "OEMName_Uncleaned=System manufacturer&" +
                               $"InstallationType={InstallType}&" +
                               "AttrDataVer=98&" +
                               "IsEdgeWithChromiumInstalled=1&" +
                               "TimestampEpochString_20H1=1593425114&" +
                               $"OSVersion={ReportingVersion}&" +
                               "TencentType=1&" +
                               $"FlightContent={content}&" +
                               "Steam=URL%3Asteam%20protocol&" +
                               "Free=8to16&" +
                               "TencentReg=79 d0 01 d7 9f 54 d5 01&" +
                               "FirmwareVersion=7704&" +
                               "DchuAmdGrfxExists=1&" +
                               "SdbVer_20H1=2340&" +
                               $"OSArchitecture={MachineType.ToString().ToUpper()}&" +
                               "DefaultUserRegion=244&" +
                               "UpdateManagementGroup=2";

            if (ReportingSku == OSSkuId.EnterpriseS || ReportingSku == OSSkuId.EnterpriseSN)
            {
                DeviceAttributes += "&BlockFeatureUpdates=1";
            }

            if (ReportingSku == OSSkuId.Holographic)
            {
                DeviceAttributes += $"OneCoreFwV={ReportingVersion}" +
                                    $"OneCoreSwV={ReportingVersion}" +
                                    $"OneCoreManufacturerModelName=HoloLens" +
                                    $"OneCoreManufacturer=Microsoft Corporation" +
                                    $"OneCoreOperatorName=000-88";
            }
            else if (ReportingSku == OSSkuId.HubOS)
            {
                DeviceAttributes += $"OneCoreFwV={ReportingVersion}" +
                                    $"OneCoreSwV={ReportingVersion}" +
                                    $"OneCoreManufacturerModelName=Surface Hub 2X" +
                                    $"OneCoreManufacturer=Microsoft Corporation" +
                                    $"OneCoreOperatorName=000-88";
            }
            else if (ReportingSku == OSSkuId.Andromeda)
            {
                DeviceAttributes += $"OneCoreFwV={ReportingVersion}" +
                                    $"OneCoreSwV={ReportingVersion}" +
                                    $"OneCoreManufacturerModelName=Andromeda" +
                                    $"OneCoreManufacturer=Microsoft Corporation" +
                                    $"OneCoreOperatorName=000-88";
            }
            else if (ReportingSku == OSSkuId.Lite)
            {
                DeviceAttributes += $"OneCoreFwV={ReportingVersion}" +
                                    $"OneCoreSwV={ReportingVersion}" +
                                    $"OneCoreManufacturerModelName=Santorini" +
                                    $"OneCoreManufacturer=Microsoft Corporation" +
                                    $"OneCoreOperatorName=000-88";
            }

            CallerAttributes = "E:Interactive=1&IsSeeker=1&SheddingAware=1&";
            if (IsStore)
            {
                CallerAttributes = "Acquisition=1&Id=Acquisition%3BMicrosoft.WindowsStore_8wekyb3d8bbwe&";
            }
            else
            {
                CallerAttributes = "Id=UpdateOrchestrator&";
            }
            Products = "";
            if (!IsStore)
            {
                Products = $"PN={ReportingPFN}.{MachineType}&Branch={CurrentBranch}&PrimaryOSProduct=1&Repairable=1&V={ReportingVersion};";
            }

            this.SyncCurrentVersionOnly = SyncCurrentVersionOnly;
        }
示例#3
0
 private static Dictionary <CTAC, string> GetRingCTACs(MachineType machineType, OSSkuId osSkuId)
 {
     return(new Dictionary <CTAC, string>()
     {
         { new CTAC(osSkuId, "10.0.15063.534", machineType, "WIS", "", "CB", "rs2_release", "Production", false), "Insider Slow (RS2)" },
         { new CTAC(osSkuId, "10.0.15063.534", machineType, "WIF", "", "CB", "rs2_release", "Production", false), "Insider Fast (RS2)" },
         { new CTAC(osSkuId, "10.0.16299.15", machineType, "Retail", "", "CB", "rs3_release", "Production", true), "Retail (RS3)" },
         { new CTAC(osSkuId, "10.0.17134.1", machineType, "Retail", "", "CB", "rs4_release", "Production", true), "Retail (RS4)" },
         { new CTAC(osSkuId, "10.0.17763.1217", machineType, "Retail", "", "CB", "rs5_release", "Production", true), "Retail (RS5)" },
         { new CTAC(osSkuId, "10.0.18362.836", machineType, "Retail", "", "CB", "19h1_release", "Production", true), "Retail (TI)" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "Retail", "", "CB", "vb_release", "Production", true, false), "Retail (VB)" },
         { new CTAC(osSkuId, "10.0.19041.84", machineType, "Retail", "", "CB", "vb_release", "Production", false), "Retail" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "External", "ReleasePreview", "CB", "vb_release", "Production", false, false), "Release Preview" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "External", "Beta", "CB", "vb_release", "Production", false, false), "Beta " },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "External", "Dev", "CB", "vb_release", "Production", false, false), "Dev" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "RP", "External", "CB", "vb_release", "Production", false, false, "Active"), "Insider Release Preview" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "WIS", "External", "CB", "vb_release", "Production", false, false, "Active"), "Insider Slow" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "WIF", "External", "CB", "vb_release", "Production", false, false, "Active"), "Insider Fast" },
         { new CTAC(osSkuId, "10.0.19041.200", machineType, "WIF", "External", "CB", "vb_release", "Production", false, false, "Skip"), "Skip Ahead" },
     });
 }