+ Post New Thread
Results 1 to 11 of 11
Windows Thread, Installing/Copying Fonts from Login Script in Technical; Hi Guys, Somebody has asked me to install a new font on the machines in the IT Rooms called "Mr ...
  1. #1

    Join Date
    Aug 2005
    Location
    Shropshire
    Posts
    284
    Thank Post
    16
    Thanked 11 Times in 8 Posts
    Rep Power
    21

    Installing/Copying Fonts from Login Script

    Hi Guys,

    Somebody has asked me to install a new font on the machines in the IT Rooms called "Mr Robo Funk" to allow them to create basic animations of a Robot Dancing.

    I put the font in the Netlogon folder of the server and added a line in the logon script to copy the file to C:\Windows\Fonts automatically so I don't have to go around every PC! This works fine when a admin logs into the computers, but when the pupils log on, the file is copied across as they don't have permission to write to the C:\Windows\fonts folder (Or any other on the C Drive)

    Is there an easy way around this so the font can be installed quickly and easily by login/startup script and permission not being a problem?

    Regards,

    Matt

  2. #2
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,432
    Thank Post
    10
    Thanked 488 Times in 428 Posts
    Rep Power
    111

    Re: Installing/Copying Fonts from Login Script

    can't you run it as a startup script? It will then do the copy as system (I think).

  3. #3

    Join Date
    Feb 2006
    Posts
    1,187
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Re: Installing/Copying Fonts from Login Script

    Quote Originally Posted by DMcCoy
    can't you run it as a startup script? It will then do the copy as system (I think).
    Yeah but you will have to make the computer accounts part of domain users group or else they won't be able to access the share.

    Another alternative might be to roll your own MSI.

  4. #4
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,432
    Thank Post
    10
    Thanked 488 Times in 428 Posts
    Rep Power
    111

    Re: Installing/Copying Fonts from Login Script

    just create a new share with read permissions for domain computers.

  5. #5
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Installing/Copying Fonts from Login Script

    Ok here is what i had to do to get font installation to work:

    Create a bat file that like this:

    Code:
    copy \\server\Font\fontfile_.TTF %systemroot%\fonts
    regedit /s \\server\font\instfont.reg
    The above will copy the copy the font to the font folder and run a install reg file. As far as i know when it comes to using a startup scripts and network share you need only make sure that the system account has permissions to that share, you only have a problem when going cross domains.. then you can create a mapped drive during startup or something like that.

    The reg file is below:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts]
    "The name of the Font (TrueType)"="fontfile_.TTF"
    The above reg file is used to ensure that your new font is visible ie if you load up word or something and look in the fonts available its there.

    Hope that helps.

  6. #6

    Join Date
    Aug 2005
    Location
    Shropshire
    Posts
    284
    Thank Post
    16
    Thanked 11 Times in 8 Posts
    Rep Power
    21

    Re: Installing/Copying Fonts from Login Script

    Thanks... will give that ago.


    @DMcCoy... When the pupils logon... they are able to see the folder where the font is OK, as that folder has the correct permissions, it's just they don't have the permissions to copy it into the Font's folder on the local Hard Drive.

    I thought startup scripts were 'spose to work regardless of who logs in, but when I created the startup script with the command in it, it seem to run after somebody had logged in with the same results.

    Is the startup script 'spose to run before you get the Logon Box?

    Regards,

    Matt

  7. #7
    apeo's Avatar
    Join Date
    Sep 2005
    Location
    Lost
    Posts
    1,612
    Thank Post
    95
    Thanked 115 Times in 111 Posts
    Rep Power
    42

    Re: Installing/Copying Fonts from Login Script

    By the way my script runs as computer startup script and not a user startup script.

  8. #8
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,432
    Thank Post
    10
    Thanked 488 Times in 428 Posts
    Rep Power
    111

    Re: Installing/Copying Fonts from Login Script

    Quote Originally Posted by mattpant
    Thanks... will give that ago.


    @DMcCoy... When the pupils logon... they are able to see the folder where the font is OK, as that folder has the correct permissions, it's just they don't have the permissions to copy it into the Font's folder on the local Hard Drive.

    I thought startup scripts were 'spose to work regardless of who logs in, but when I created the startup script with the command in it, it seem to run after somebody had logged in with the same results.

    Is the startup script 'spose to run before you get the Logon Box?

    Regards,

    Matt
    You need to run it from the computer section of the policy.

  9. #9

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,803
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Installing/Copying Fonts from Login Script

    If your trying access a share from a startup script you need to allow domain computers access.

    If your trying to access a share from a login script you need to allow domain users access.

    If your trying to access a share from both a startup and a login script then you need to allow authenticated users instead.

  10. #10

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,343
    Thank Post
    624
    Thanked 1,584 Times in 1,421 Posts
    Rep Power
    414

    Re: Installing/Copying Fonts from Login Script

    Why not add all the fonts you want to an msi and deploy that to the computers?

    Ben

  11. #11

    Join Date
    Aug 2011
    Location
    Bern
    Posts
    4
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0

    Installing fonts automated.

    just put all the fonts you want to install per script into a folder on a accessible share.

    then you just launch this short simple vbscript:

    install font script

    There are many versions out but most of them don't work with windows 7 anymore or you would have to alter the script.

    Pretty clean solution...

    Cheers

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 24
    Last Post: 16th July 2013, 10:33 AM
  2. Set firefox proxy via login script
    By Jackd in forum Windows
    Replies: 2
    Last Post: 24th December 2009, 01:59 PM
  3. Printers disappearing after login script
    By gshaw in forum Windows
    Replies: 11
    Last Post: 10th June 2009, 06:47 PM
  4. Replies: 4
    Last Post: 23rd November 2006, 09:33 PM
  5. Login script problem
    By SpuffMonkey in forum Windows
    Replies: 55
    Last Post: 4th February 2006, 09:27 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •