简体   繁体   English

使用 PowerShell 更改 Windows 中的字体设置

[英]Change Font Settings in Windows using PowerShell

In windows machine, Do we have any way to enable the " Allow fonts to be installed using a shortcut (advanced) " option in Control Panel\Appearance and Personalization\Fonts\Font settings using powershell script.在 windows 机器中,我们是否有任何方法可以使用 Z2F35BZ88FE 脚本在控制面板\外观和个性化\字体\字体设置中启用“允许使用快捷方式(高级)安装 fonts ”选项。

Image of Font Settings Option字体设置选项的图像

Highlighted checkbox should be enabled应启用突出显示的复选框

Thanks in advance提前致谢

if (-not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Font Management")) { New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Font Management" -Force } New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Font Management" -Name "InstallAsLink" -PropertyType DWord -Value 1 -Force if (-not (Test-Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Font Management")) { New-Item -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Font Management" -Force } New-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Font Management" -Name "InstallAsLink" -PropertyType DWord -Value 1 -Force

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM