﻿<Activity mc:Ignorable="sads sap" x:Class="Workflow.Workflow1" this:Workflow1.CEIPSetting="0"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mpa="clr-namespace:Microsoft.PowerShell.Activities;assembly=Microsoft.PowerShell.Activities"
 xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System"
 xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:s1="clr-namespace:System;assembly=System"
 xmlns:s2="clr-namespace:System;assembly=System.Xml"
 xmlns:s3="clr-namespace:System;assembly=System.Core"
 xmlns:s4="clr-namespace:System;assembly=System.ServiceModel"
 xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"
 xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System"
 xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"
 xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core"
 xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sd="clr-namespace:System.Data;assembly=System.Data"
 xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"
 xmlns:sma="clr-namespace:System.Management.Automation;assembly=System.Management.Automation"
 xmlns:st="clr-namespace:System.Text;assembly=mscorlib"
 xmlns:this="clr-namespace:Workflow"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="CEIPSetting" Type="InArgument(x:Int32)" />
  </x:Members>
  <sap:VirtualizedContainerService.HintSize>571,536</sap:VirtualizedContainerService.HintSize>
  <mva:VisualBasic.Settings>Assembly references and imported namespaces for internal implementation</mva:VisualBasic.Settings>
  <Sequence DisplayName="Set-CEIP-Sequence" sap:VirtualizedContainerService.HintSize="531,456">
    <Sequence.Variables>
      <Variable x:TypeArguments="x:Int32" Default="[CEIPSetting]" Name="RegCEIPSetting" />
      <Variable x:TypeArguments="x:String" Default="SOFTWARE\Microsoft\SQMClient\Windows" Name="WindowsCEIPSubKey" />
      <Variable x:TypeArguments="x:String" Default="CEIPEnable" Name="CEIPValueName" />
    </Sequence.Variables>
    <sap:WorkflowViewStateService.ViewState>
      <scg3:Dictionary x:TypeArguments="x:String, x:Object">
        <x:Boolean x:Key="IsExpanded">True</x:Boolean>
      </scg3:Dictionary>
    </sap:WorkflowViewStateService.ViewState>
    <If Condition="[CEIPSetting = 1]" sap:VirtualizedContainerService.HintSize="509,208">
      <If.Then>
        <Assign sap:VirtualizedContainerService.HintSize="242,60">
          <Assign.To>
            <OutArgument x:TypeArguments="x:Int32">[RegCEIPSetting]</OutArgument>
          </Assign.To>
          <Assign.Value>
            <InArgument x:TypeArguments="x:Int32">1</InArgument>
          </Assign.Value>
        </Assign>
      </If.Then>
      <If.Else>
        <Assign sap:VirtualizedContainerService.HintSize="242,60">
          <Assign.To>
            <OutArgument x:TypeArguments="x:Int32">[RegCEIPSetting]</OutArgument>
          </Assign.To>
          <Assign.Value>
            <InArgument x:TypeArguments="x:Int32">0</InArgument>
          </Assign.Value>
        </Assign>
      </If.Else>
    </If>
    <mpa:InvokeWmiMethod ArgumentList="[New PSDataCollection(Of PSObject) From {PSObject.AsPSObject(2147483650), PSObject.AsPSObject(WindowsCEIPSubKey)}]" Class="StdRegProv" DisplayName="Set-CEIP-CreateKey" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="509,22" Impersonation="Default" Name="CreateKey" Namespace="root\cimV2" PSAuthenticationLevel="Default" />
    <mpa:InvokeWmiMethod ArgumentList="[New PSDataCollection(Of PSObject) From {PSObject.AsPSObject(2147483650), PSObject.AsPSObject(WindowsCEIPSubKey), PSObject.AsPSObject(CEIPValueName), PSObject.AsPSObject(RegCEIPSetting)}]" Class="StdRegProv" DisplayName="Set-CEIP-SetValue" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="509,22" Impersonation="Default" Name="SetDWORDValue" Namespace="root\cimV2" PSAuthenticationLevel="Default" />
  </Sequence>
</Activity>