Installed Fonts Directory and Name search

Hi All,
I am looking for the analysis to get the installed fonts name and directory of all fonts.

Fonts are installed by default under “C:\Windows\fonts,” but it’s possible that users have set up them somewhere else. In that case, you should keep all of these potential locations in mind for optimal outcomes.

You can use the system search function based on file extension as a workaround to deal with such unknown locations.

You can use the script I made below to search for.mp3 files using the log4j method (just replace the extension with yours in the following action script).

action uses wow64 redirection false
parameter "output"="{pathname of parent folder of data folder of client & "\scanresults.txt"}"

delete "{parameter "output"}"
delete __appendfile

appendfile {concatenation "%0d%0a" of ("for /F %22tokens=*%22 %25%25i in ('dir /s /b " & it & "\ ^| findstr /R /C:%22\\*.mp3$%22') do @echo %25%25~dpnxi>>%22" & (parameter "output") & "%22") of pathnames of root folders of drives whose (type of it = "DRIVE_FIXED")}

delete run_scan.cmd
move __appendfile run_scan.cmd

//override timeout after 30 min
action launch preference low-priority
override wait
hidden=true
timeout_seconds=1800
disposition=terminate
wait cmd.exe /c run_scan.cmd

Additionally, you may check out these linked posts:

https://www.bigfix.me/analysis/details/2997992?force=true

1 Like

Thanks Vijay for your help and guidance.

1 Like