Kevin, When you are packaging the script and adding the program, on the environment tab, have you selected "run with administrative rights?"
- Harry Mavromatidis From: [email protected] [mailto:[email protected]] On Behalf Of Etienne Croteau Sent: Thursday, June 12, 2014 3:12 PM To: [email protected] Subject: RE: [mssms] Adding fonts to your base image or deploying using SCCM xcopy "%~dp0TT8731Z_.TTF" "%WINDIR%\Fonts\" /Y REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" /v "MICR 013 BT (TrueType)" /t REG_SZ /d TT8731Z_.TTF /f Adapt these lines with each font you have + force logoff (or reboot) Maybe not the fastest way to do it, but it works for us De : [email protected]<mailto:[email protected]> [mailto:[email protected]] De la part de Kevin Johnston Envoyé : 12 juin 2014 14:47 À : '[email protected]' Objet : RE: [mssms] Adding fonts to your base image or deploying using SCCM Well it seems I was so excited it worked, that when I tested it as a user without Admin rights it failed (obviously). It doesn't seem possible to install fonts for all user, or as the system like an application. So ultimately this will not work for me as we have users that have no privileges or have access to the fonts folder. So it is back to the drawing board. If anyone else has ideas on how to install fonts for non-Admin users I would love to hear it. I will go back through the sites suggested and see.. Kevin From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Kevin Johnston Sent: Wednesday, June 11, 2014 10:12 PM To: '[email protected]' Subject: RE: [mssms] Adding fonts to your base image or deploying using SCCM I have tested it with the following script and it works fine: Const FONTS = &H14& Set objShell = CreateObject("Wscript.Shell") Set objFSO = CreateObject("Scripting.FileSystemObject") strScriptDir = objFSO.GetParentFolderName(WScript.ScriptFullName) Set objApp = CreateObject("Shell.Application") Set objFolder = objApp.Namespace(FONTS) If Not objFSO.FileExists("C:\WINDOWS\Fonts\MyriadPro-Black.otf") Then objFolder.CopyHere strScriptDir & "\MyriadPro-Black.otf" I made this as a package vbs. For my detection I had to put in each registry string for detection. At first it would install everything but then fail, and I figured it was the detection (I originally had it setup with just the beginning of the font name - MyriadPro, then I decided to connect to my machine and put the full string and it finally worked. [cid:[email protected]] Put a small little pop up box letting them know what it was, and then a box telling them when it was done. It is not pretty but it works :) Thanks to Jason, Reto and Jason W for the links. Kevin From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Johns, Damon (DoJ) Sent: Wednesday, June 11, 2014 6:56 PM To: '[email protected]' Subject: RE: [mssms] Adding fonts to your base image or deploying using SCCM Thanks Rod, I will look into that :) I just checked this link out from Jason and that vb script looks like it will handle OTF fonts also http://www.cloudtec.ch/blog/tech/install-font-command-line-script-windows-7.html There were so many emails this morning I missed it, I will have to do some testing this morning. Thanks again. Cheers From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Jason Wallace Sent: Wednesday, 11 June 2014 10:50 PM To: [email protected]<mailto:[email protected]> Subject: RE: [mssms] Adding fonts to your base image or deploying using SCCM http://www.cloudtec.ch/blog/tech/install-font-command-line-script-windows-7.html ________________________________ From: [email protected]<mailto:[email protected]> To: [email protected]<mailto:[email protected]> Subject: [mssms] Adding fonts to your base image or deploying using SCCM Date: Wed, 11 Jun 2014 12:45:53 +0000 Does anyone have a good way to ensure that when building a base image and adding fonts will be available for all users? I have some corporate fonts (20) that when I install in the base image as Administrator do not install when a user logs on. I am thinking maybe I should look into copyProfile? The second challenge I have is trying to install it for the other 600 computers that do not have the fonts. I found a few scripts online and I have tried them, but they break when pushing in SCCM (user deploy) Any ideas? Thanks, Kevin ________________________________ CONFIDENTIALITY NOTICE AND DISCLAIMER The information in this transmission may be confidential and/or protected by legal professional privilege, and is intended only for the person or persons to whom it is addressed. If you are not such a person, you are warned that any disclosure, copying or dissemination of the information is unauthorised. If you have received the transmission in error, please immediately contact this office by telephone, fax or email, to inform us of the error and to enable arrangements to be made for the destruction of the transmission, or its return at our cost. No liability is accepted for any unauthorised use of the information contained in this transmission.

