General discussion

Locked

How to install Fonts over a domain?

By zalewskim ·
Hi,

I have a Windows Server 2003 domain with 100 Windows XP Pro SP3 and 4 Vista Business 32x machines.

We have 5 font files (TTF) that we need to deploy to all the computers, I have so far tried the following with out success; Put the font files into the netlogon folder in a subfolder called fonts. Thencreated a GPO with a script (.bat) in the machine startup containing the following text - "copy \\mydomain.com\NETLOGON\ITC_QUAY_TTF_PC\*.* %systemroot%\fonts"

If I then do a GPUPDATE /FORCE then GPRESULT I cab see the GPO is applied. I tried rebooting the machine 3 - 4 times but it does not apply and there is nothing in the event log that looks related. I then tried manually running the script when logged on as admin and it works. I tried running the script while logged on as a normal user but it says access denied! I have given all users full permission to the fonts but from my understanding only admins and power users can copy / modify the %systemroot%. I thought that the startup script would overcome this.

Any advice out there?

PS sorry for the war and peace :-)

---------------------------

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

WMI Impersonate?

by seanferd In reply to How to install Fonts over ...

You need to impersonate or otherwise use domain (or local?) admin or higher credentials. (Don't ask me how!) I know you can use WMI scripting to do it.

Otherwise, can these fonts ride along with other updates which obviously do have the permissions to install?

Collapse -

Script ?

by Jacky Howe In reply to How to install Fonts over ...

Hey, Scripting Guy! How Can I Install Fonts Using a Script?

http://blogs.technet.com/heyscriptingguy/archive/2008/04/25/how-can-i-install-fonts-using-a-script.aspx

Collapse -

Script problem

by zalewskim In reply to Script ?

Hi,
Thanbks for that link it was a great help! I now have the fonts installing fine, but I have hit another small problem.

the fonts install fine on the first occasion however as the GPO is applied every bootup it keeps trying to copy the fonts and so Windows pops up asking if you want to reinstall the fonts. I know that I can change the constant value to &H4& or &H10& to surpress the box but I was looking for a more intellegent solution. Something that checks to see if the fonts are installed before it tries to install them. As I am a little concerned about bootup time if everytime it tries to install the fonts but surpesses the prompt.

Any ideas? (I have pasted my script below)

Const FONTS = &H14&
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)
objFolder.CopyHere "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC\Sans_Black.ttf"
objFolder.CopyHere "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC\Sans_Black_Italic.ttf"
objFolder.CopyHere "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC\Sans_Medium.ttf"
objFolder.CopyHere "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC\Sans_Medium_italic.ttf"
objFolder.CopyHere "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC\SanS_Book.ttf"
objFolder.CopyHere "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC\Sans_Book_Italic.ttf"

Collapse -

Amended script fails

by zalewskim In reply to Script problem

Hi,

I have also tries the following script which is meant to check if the file exists before copying but it still tries to install the font over the original but I cant understand why it doesn't work. Any Ideas?


Const FONTS = &H14&

strSource = "\\domain.com\NETLOGON\ITC_QUAY_TTF_PC"
arrFiles = Array("Sans_Black.ttf", "Sans_Black_Italic.ttf", "Sans_Medium.ttf", "Sans_Medium_italic.ttf", "SanS_Book.ttf", "Sans_Book_Italic.ttf")

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(FONTS)

For Each strFile in arrFiles
Set objFolderItem = objFolder.ParseName(strFile)

If objFolderItem is nothing Then
objFolder.CopyHere strSource & "\" & strFile
End If
Next

Back to Networks Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums