【发布时间】:2021-09-15 15:55:06
【问题描述】:
【问题讨论】:
-
这个问题最好在超级用户上问
标签: windows powershell
【问题讨论】:
标签: windows powershell
您需要在注册表项HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced下设置LaunchTo属性。
为此,我们可以使用Set-ItemProperty cmdlet:
# Set up the parameters for Set-ItemProperty
$sipParams = @{
Path = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Name = 'LaunchTo'
Value = 1 # Set the LaunchTo value for "This PC"
}
# Run Set-ItemProperty with the parameters we set above
Set-ItemProperty @sipParams
这将采用三个可能的值,因此如果您想打开 快速访问 或 下载,请将值设置为这些数字之一:
Downloads 的值似乎没有记录,但确实有效。打开文件资源管理器关于文件关联时,任何其他值都会导致错误。
【讨论】: