l--*_*''' 5 windows binary powershell internet-explorer
我理解使用powershell可以更改注册表值.
例如,这里:http://poshcode.org/3504
我们可以像这样设置属性:
Set-ItemProperty 'HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice' -name ProgId IE.FTP
Run Code Online (Sandbox Code Playgroud)
但是,是否可以使用powershell设置这些二进制值?

And*_*ndi 10
这是一个例子:
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections'
$data = (Get-ItemProperty -Path $key -Name DefaultConnectionSettings).DefaultConnectionSettings
$data[8] = 9
Set-ItemProperty -Path $key -Name DefaultConnectionSettings -Value $data
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8566 次 |
| 最近记录: |