There is a key
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant
which contains Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant in its path. I have to set 0 value
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant -Name Enabled -Value 0 -Force
But the only way to set a value due backspace is
[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", $COMPUTERNAME).OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Steps-Recorder", $true).SetValue("Enabled", 0)
Is there any solution to avoid .NET Framework?