mkht / dscr_font Goto Github PK
View Code? Open in Web Editor NEWPowerShell DSC Resource to add / remove Font.
License: MIT License
PowerShell DSC Resource to add / remove Font.
License: MIT License
インストール自体は問題ないが、[コントロールパネル]→[フォント]の一覧表示に反映されない。
PCを再起動すると反映される。
現在はTest-TargetResourceでの判定はFontFileに指定されたフォントファイル名がC:\Windows\Font
に存在するか否かのみで行っている。
この場合、ファイル名が変わると判定が正しく行えなくなる危険性があるのではないか。
フォント名での判定としたほうがいい。
使い方にもよるだろうけど、ローカルファイルは消さないほうが良い気がする
Method not found: 'System.Collections.Generic.List1 Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache.ImportClasses(System.String, System.Tuple
2, System.Collections.ObjectModel.Collection`1)'.
Hey i just wanted to say thank you for your github DSC Resources. You have done a great service sharing them.
I am using your AppX package resource and i am just looking at the Fonts resource.
I noticed that if I pass in a user credential, then the font gets installed in the user profile
ls $env:LOCALAPPDATA\Microsoft\Windows\Fonts
Directory: C:\Users\benwilk\AppData\Local\Microsoft\Windows\Fonts
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 2/27/2021 4:41 PM 1129160 Fira Code Light Nerd Font Complete.ttf
However the TEST of the Resource only checks in the $FontFolder = Join-Path $Env:windir '\Fonts'
So currently the User credential for the install is not supported. So I just figured I would let you know.
In this case, you would get a prompt that blocks DSC.
Now that I know this I will remove the credential and cleanup the font in the user directory.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.