Question
Installer une police dans le dossier Fonts
- Matthew BETTON
- Hors Ligne
- Membre platinium
-
- Messages : 968
- Remerciements reçus 0
ça sera a la main!
2 questions :
- Quelle est la version de Windows sur les postes de travail ?
- S'il s'agit d'un domaine Active Directory, en quelle version est-il ?
Connexion ou Créer un compte pour participer à la conversation.
- julien
- Auteur du sujet
- Hors Ligne
- Membre junior
-
- Messages : 26
- Remerciements reçus 0
T'as une idee?
thanks
Connexion ou Créer un compte pour participer à la conversation.
- Matthew BETTON
- Hors Ligne
- Membre platinium
-
- Messages : 968
- Remerciements reçus 0
Le problème n'est pas lié à PowerShell.
J'ai trouvé ce fil de discussion sur le même sujet :
How to install fonts remotely
La copie ne peut fonctionner qu'en mode élévation.
Certaines personnes ont utilisé cet outil avec succès :
FontReg - Windows Font Registration & Installation Utility
Ce post :
Why i can't copy a font file to c:\Windows\Fonts thought CopyFile
Nous ramène vers ceci
About the Fonts folder in Windows, Part 1 (aka What are we talking about?)
The simple answer? It is a Shell namespace extension that causes any display of %WINDIR%Fonts in the Windows Explorer to have a special view where typical filesystems actions in Explorer such as copy, move, and delete have special handlers.
It is by no means the only way to get fonts ontop Windows, though.
If you look at the Platfrom SDK documentation for the AddFontResource function:
The AddFontResource function adds the font resource from the specified file to the system font table. The font can subsequently be used for text output by any application.
So all you have to do to get a font available to everyone is call this function!
Pour ma part, je n'ai eu à le faire dans ma carrière que sous NT4 (plusieurs centaines de postes de travail) et je l'ai fait avec des packages développés sous Wise Install Manager, qui ont été déployés ensuite par un outil CA (début années 2000
Bref, pas simple pour un truc qui devrait finalement l'être ...
Bonne soirée quand même !
Connexion ou Créer un compte pour participer à la conversation.
- Matthew BETTON
- Hors Ligne
- Membre platinium
-
- Messages : 968
- Remerciements reçus 0
[code:1]
$FONTS = 0x14
$Path=\"c:\rapsys\fonts\"
$objShell = New-Object -ComObject Shell.Application
$objFolder = $objShell.Namespace($FONTS)
New-Item $Path -type directory
Copy-Item \"f:\NewFontsForDeployment\*\" $Path
$Fontdir = dir $Path
foreach($File in $Fontdir) {
$objFolder.CopyHere($File.fullname)
}
remove-item $Path -recurse[/code:1]
Source
(ba oui, je ne fais pas tout
Connexion ou Créer un compte pour participer à la conversation.
- Vous êtes ici :
-
Accueil
-
forum
-
PowerShell
-
Entraide pour les débutants
- Installer une police dans le dossier Fonts