Edit C:\Windows\System32\ServerManagerInternal\TelemetryManagement\Set-_InternalWER.xaml
??<Activity mc:Ignorable="sap sads" x:Class="Workflow.Set_WER" this:Set_WER.WERSetting="1" 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="WERSetting" Type="InArgument(x:Int32)" /> </x:Members> <sap:VirtualizedContainerService.HintSize>571,870</sap:VirtualizedContainerService.HintSize> <mva:VisualBasic.Settings>Assembly references and imported namespaces for internal implementation</mva:VisualBasic.Settings> <Sequence DisplayName="Set-WER-Sequence" sap:VirtualizedContainerService.HintSize="531,790"> <Sequence.Variables> <Variable x:TypeArguments="x:String" Default="Software\Microsoft\Windows\Windows Error Reporting" Name="WERDisabledSubKey" /> <Variable x:TypeArguments="x:String" Default="Software\Microsoft\Windows\Windows Error Reporting\Consent" Name="WERSubKey" /> <Variable x:TypeArguments="x:String" Default="Disabled" Name="WERDisabledValueName" /> <Variable x:TypeArguments="x:String" Default="DefaultConsent" Name="WERConsentValueName" /> <Variable x:TypeArguments="x:Int32" Default="1" Name="RegWERSetting" /> </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="[WERSetting = 0 Or WERSetting = 1 Or WERSetting = 2 Or WERSetting = 3]" sap:VirtualizedContainerService.HintSize="509,208"> <If.Then> <Assign sap:VirtualizedContainerService.HintSize="242,60"> <Assign.To> <OutArgument x:TypeArguments="x:Int32">[RegWERSetting]</OutArgument> </Assign.To> <Assign.Value> <InArgument x:TypeArguments="x:Int32">[WERSetting]</InArgument> </Assign.Value> </Assign> </If.Then> <If.Else> <Assign sap:VirtualizedContainerService.HintSize="242,60"> <Assign.To> <OutArgument x:TypeArguments="x:Int32">[RegWERSetting]</OutArgument> </Assign.To> <Assign.Value> <InArgument x:TypeArguments="x:Int32">1</InArgument> </Assign.Value> </Assign> </If.Else> </If> <If Condition="[RegWERSetting = 0]" sap:VirtualizedContainerService.HintSize="509,418"> <If.Then> <Sequence DisplayName="Set-WER-Disabled-Sequence" sap:VirtualizedContainerService.HintSize="222,208"> <Sequence.Variables> <Variable x:TypeArguments="x:Int32" Default="1" Name="RegWERDisabledSetting" /> </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> <mpa:InvokeWmiMethod ArgumentList="[New System.Management.Automation.PSDataCollection(Of System.Management.Automation.PSObject) From {System.Management.Automation.PSObject.AsPSObject(2147483650), System.Management.Automation.PSObject.AsPSObject(WERDisabledSubKey)}]" Class="StdRegProv" DisplayName="Set-WER-Disabled-CreateKey" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="200,22" Impersonation="Default" Name="CreateKey" Namespace="root\cimv2" PSAuthenticationLevel="Default" /> <mpa:InvokeWmiMethod ArgumentList="[New PSDataCollection(Of PSObject) From {PSObject.AsPSObject(2147483650), PSObject.AsPSObject(WERDisabledSubKey), PSObject.AsPSObject(WERDisabledValueName), PSObject.AsPSObject(RegWERDisabledSetting)}]" Class="StdRegProv" DisplayName="Set-WER-Disabled-SetValue" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="200,22" Impersonation="Default" Name="SetDWORDValue" Namespace="root\cimv2" PSAuthenticationLevel="Default" /> </Sequence> </If.Then> <If.Else> <Sequence DisplayName="Set-WER-Consent-Sequence" sap:VirtualizedContainerService.HintSize="222,270"> <sap:WorkflowViewStateService.ViewState> <scg3:Dictionary x:TypeArguments="x:String, x:Object"> <x:Boolean x:Key="IsExpanded">True</x:Boolean> </scg3:Dictionary> </sap:WorkflowViewStateService.ViewState> <mpa:InvokeWmiMethod ArgumentList="[New PSDataCollection(Of PSObject) From {PSObject.AsPSObject(2147483650), PSObject.AsPSObject(WERDisabledSubKey), PSObject.AsPSObject(WERDisabledValueName)}]" Class="StdRegProv" DisplayName="Set-WER-Consent-DeleteValue" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="200,22" Impersonation="Default" Name="DeleteValue" Namespace="root\cimv2" PSAuthenticationLevel="Default" /> <mpa:InvokeWmiMethod ArgumentList="[New PSDataCollection(Of PSObject) From {PSObject.AsPSObject(2147483650), PSObject.AsPSObject(WERSubKey)}]" Class="StdRegProv" DisplayName="Set-WER-Consent-CreateKey" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="200,22" Impersonation="Default" Name="CreateKey" Namespace="root\cimv2" PSAuthenticationLevel="Default" /> <mpa:InvokeWmiMethod ArgumentList="[New PSDataCollection(Of PSObject) From {PSObject.AsPSObject(2147483650), PSObject.AsPSObject(WERSubKey), PSObject.AsPSObject(WERConsentValueName), PSObject.AsPSObject(RegWERSetting)}]" Class="StdRegProv" DisplayName="Set-WER-Consent-SetValue" EnableAllPrivileges="False" sap:VirtualizedContainerService.HintSize="200,22" Impersonation="Default" Name="SetDWORDValue" Namespace="root\cimv2" PSAuthenticationLevel="Default" /> </Sequence> </If.Else> </If> </Sequence> </Activity>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de