The following VBS script can be used to install fonts on a computer remotely. It checks to see if the font already exists, and then installs it if it isn't on the computer.
Set wshShell = CreateObject("WScript.Shell")
Set objFSO = createobject("Scripting.Filesystemobject")
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace("\\fileserver\sourcepath")
If objFSO.FileExists(wshShell.SpecialFolders("Fonts") & "\font1.TTF") = False Then
Set objFolderItem = objFolder.ParseName("font1.TTF")
objFolderItem.InvokeVerb("Install")
End If
If objFSO.FileExists(wshShell.SpecialFolders("Fonts") & "\font2.TTF") = False Then
Set objFolderItem = objFolder.ParseName("font2.TTF")
objFolderItem.InvokeVerb("Install")
End If
- Blogger Comment
Subscribe to:
Post Comments
(
Atom
)
Category
- Active Directory ( 8 )
- App Packaging ( 6 )
- BitLocker ( 9 )
- CrashPlan ( 7 )
- DNS ( 1 )
- DocLink ( 2 )
- Excel ( 3 )
- Exchange ( 7 )
- Group Policy ( 2 )
- Javascript ( 1 )
- M365 ( 5 )
- OneDrive ( 1 )
- OneNote ( 1 )
- Power Apps ( 1 )
- Power Automate ( 1 )
- Power BI ( 11 )
- PowerShell ( 54 )
- SCCM ( 28 )
- SCCM Device Collections ( 12 )
- SCCM Reports ( 12 )
- SCCM User Collection ( 2 )
- SCSM ( 4 )
- SharePoint ( 52 )
- SharePoint Design ( 20 )
- Skype for Business ( 1 )
- SQL Server ( 3 )
- SSL Certificates ( 3 )
- Teams ( 6 )
- Windows 10 ( 3 )
- Windows 7 ( 4 )
- Windows Server ( 5 )
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.