matthewjberger / scoop-nerd-fonts

A scoop bucket for installing nerd fonts
The Unlicense
353 stars 34 forks source link

acl issue during update #238

Open aviv-julienjehannet opened 1 year ago

aviv-julienjehannet commented 1 year ago

Microsoft Version: 21H1 (Build Number: 19043.1645)

Get this error after a scoop update -f meslo-NF command:

Set-Acl : Die Vertrauensstellung zwischen dieser Arbeitsstation und der primären Domäne konnte nicht hergestellt werden.
In Zeile:27 Zeichen:5
+     Set-Acl -AclObject $accessControlList $fontInstallDir
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (C:\Users\*user*\Windows\Fonts:String) [Set-Acl], SystemException
    + FullyQualifiedErrorId : System.SystemException,Microsoft.PowerShell.Commands.SetAclCommand

Regarding the ACL permissions, Sddl is maybe interesting for being reviewed:

❯ Get-Acl "${env:LOCALAPPDATA}\Microsoft\Windows\Fonts" | Format-List

Path   : Microsoft.PowerShell.Core\FileSystem::C:\Users\*user*\AppData\Local\Microsoft\Windows\Fonts
Owner  : *OWNER\User*
Group  :
Access : ZERTIFIZIERUNGSSTELLE FÜR ANWENDUNGSPAKETE\ALLE ANWENDUNGSPAKETE Allow  ReadAndExecute, Synchronize
         ZERTIFIZIERUNGSSTELLE FÜR ANWENDUNGSPAKETE\ALLE EINGESCHRÄNKTEN ANWENDUNGSPAKETE Allow  ReadAndExecute, Synchronize
         NT-AUTORITÄT\SYSTEM Allow  FullControl
         VORDEFINIERT\Administratoren Allow  FullControl
         *OWNER\User* Allow  FullControl
Audit  :
Sddl   : O:S-1-5-21-555970217-2657137822-3159326059-4293G:DUD:(A;OICI;0x1200a9;;;AC)(A;OICI;0x1200a9;;;S-1-15-2-2)(A;OICIID;FA;;;SY)(A;OICIID;FA;;;BA)(A;OICIID;FA;;;S-1-
         5-21-555970217-2657137822-3159326059-4293)

Any idea of the original cause ?

N.B. Content enclosed by stars has been rewritten for confidentiality reasons.