The group policy is applied but the fonts are not being installed, also i have shared off the folder where the fonts are to everyone and with full permissions.
Any help with this is appreciated.
Cheers
Matt
Windows Server 2008Active DirectoryInstallation
Last Comment
YellowbusTeam
8/22/2022 - Mon
Manjunath Sullad
What is your client Operating system ?
Even you can install fonts by running powershell scripts and you can add it to Group policy preferences scheduled tasks,
You can also copy .ttf file to the %systemroot%\fonts and add an entry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts manually as a test.
As this is a computer level GPO, disabling UAC will not make a diffrence. The most likey cause of this not working is permissions to the share.
Remember it's the PC accessing the share not the User, and the policy is usually run on startup before the login screen.
So try this...
On the network share, make sure the share permissions is full control for everyone. On the security Tab - add "Domain COmputers" with "Read & Execute" persmissions,
Make certain the GPO is linked to the COMPUTER OU where the PC's are located.
Restart the PC.
If this does not work, run an Admin CMD window and run "gpresult /r /scope:computer" and make sure that the policy is in the applied section...
Regards
Guy
YellowbusTeam
ASKER
Thanks all,
Am waiting for an chance to test this, it will probably be in the morning now.
Cheers
Matt
YellowbusTeam
ASKER
I have gone down the Scheduled tasks route but when the script tryd to run i get the error: Fontinstall.ps1 cannot be loaded because the execution of scripts is disabled on this system.
The current script is
#Font Locations
#Network Location
$NetworkPath = \\10.70.70.40\$Font
#Local Location (temp place to store fonts)
$LocalPath= "C:\Users\Public\Fonts\"
$Fontdir = dir $LocalPath
foreach($File in $Fontdir)
{
if ((Test-Path "C:\Windows\Fonts\$File") -eq $False)
{
$objFolder.CopyHere($File.fullname,0x10)
}
I have been able to run it but now i get these errors:
The term '\\10.70.70.40\$Font' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At \\10.70.70.40\font\Fontinstall.ps1:3 char:39
+ $NetworkPath = \\10.70.70.40\$Font <<<<
+ CategoryInfo : ObjectNotFound: (\\10.70.70.40\$Font:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
By the way, I checked the instructions in the article at www.urtech.ca you mentioned, and they are excessive - writing registry information (points #8 and 9 under #2) is not needed and is actually a bad idea. Windows automatically registers any fonts copied into its Fonts folder, and it's better to leave it to Windows.
How many fonts are you looking to install and manage? This may not be a wise idea if you have a lot of fonts to be used.
Have you considered a font manager?
Dave
There are script time outs set by default they are 10 minutes but that's I think for all scripts. This can be changed by policy but you may need two re-boots to get the policy to apply and then to get the scripts to run.
YellowbusTeam
ASKER
How i have set this up, I have created a scheduled task using group policy, this then references the PS1 script which in turn should install the scripts.
The better way is exactly by deploying MSI, especially if you already have created it. You have requested attention, and I posted the instructions pertaining to your original question. Did you review them?
This failed to install the fonts i have checked and the PC is in the correct OU and is getting the policy applied.
Can anyone tell from the log above what is going wrong?
Cheers
Vadim Rapp
Looks like it's advertised, but not actually installed. Did you assign it under Computer Configuration, like on this screenshot?
If you did:
1. try to run this installation manually.
2. troubleshoot using information from https://technet.microsoft.com/en-us/library/cc775423%28v=ws.10%29.aspx , specifically what you want is Software Installation CSE - see if the installation is launched.
YellowbusTeam
ASKER
I did try to run the installation manually and i think there is an issue with the MSI.
According to the log, the installation was only advertised, but it did not actually install.
How did you specify this installation package in group policy - under Machine Configuration, or under User configuration?
YellowbusTeam
ASKER
I set it under computer configuration, the package installs but no fonts are present i even re-did the MSI file making sure the fonts were in the package.
I notice part of the log says rollback. Is it getting so far and failing dud to a permission or something?
> Is there a better and easier way of doing this
If you are open to alternative method with 3rd party tools, one I like to use is PDQ Deploy, by Admin Arsenals. They have a free version. You can install PDQ Deploy on Windows 7, Vista SP2, or Windows server. For deploying fonts... http://www.adminarsenal.com/admin-arsenal-blog/deploy-fonts-to-your-computers
Vadim Rapp
I wonder if it's wise to look for a new tool whenever there's a problem with the old one.
YellowbusTeam
ASKER
We resolved this by using another piece of software called Smart packager by Scalable.
We had nothing running on a PC and set it to discovery which monitors changes to the system, installed the drivers then ended the discovery this then gave an option to create the MSI, once this was doen we tested and it worked fine no problems.
Even you can install fonts by running powershell scripts and you can add it to Group policy preferences scheduled tasks,
Take a look below URL for more info.
http://deployhappiness.com/installing-fonts-with-powershell/
If you are using Win XP systems, Check the permissions for below registry.
HKEY_LOCAL_MACHINE\SOFTWAR
%systemroot%\fonts
https://social.technet.microsoft.com/Forums/windowsserver/en-US/b21c230d-4973-4e83-b9da-9f2e8b2104a4/install-fonts-via-group-policy?forum=winserverGP