有一把钥匙
HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant它的路径中包含Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant。我必须设置0值
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant -Name Enabled -Value 0 -Force但是设置一个值的唯一方法是使用退格键
[Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine", $COMPUTERNAME).OpenSubKey("SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience/Steps-Recorder", $true).SetValue("Enabled", 0)有什么解决方案可以避免使用.NET框架吗?
发布于 2017-08-16 21:50:15
New-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\WINEVT\Channels\Microsoft-Windows-Application-Experience\Program-Compatibility-Assistant -Name Enabled -Value 0 -Forcewindows在'/'和'\'上没有太大的区别,一些东西可能会在这里和那里崩溃,但你可以同等地打开c:\windows和c:/Windows。
因此,请尝试使用\。
https://stackoverflow.com/questions/45714681
复制相似问题