Félicitations !
+
0
points
En savoir plus
Actualités
Tests & Guides
Bons Plans
Forum
Premium
Rechercher sur le site
Connexion
Si votre email correspond à un compte, vous recevrez un lien de réinitialisation.
Réinitialiser le mot de passe
Retour connexion
Actualités
Tests & Guides
Bons Plans
GTA 6
iPhone 17
Copilot
Switch 2
Temu
ChatGPT
Tesla
Génération NT
Entraide
Développement
Développement
Scripting Microsoft
clavier et autres
clavier et autres
1 réponse
rénald
04/08/2008 à 20:36
Hello,
J'aimerais définir un clavier spécifique sur une workstation par scripte WSH
ou WMI.
du style clavier swiss french.
De plus j'aimerais savoir comment désactiver "file and printer sharing"
toujours au travers d'un script WSH ou WMI
D'avance merci
Renald
Partager
Facebook
Twitter
Reddit
Whatsapp
Email
Signaler
Signaler un problème avec ce contenu
Envoyer
1 réponse
Supprimer
Cette action est irreversible, confirmez la suppression du commentaire ?
Supprimer
Signaler le commentaire
Veuillez sélectionner un problème
Nudité
Violence
Harcèlement
Fraude
Vente illégale
Discours haineux
Terrorisme
Autre
Envoyer
Gilles LAURENT [MVP]
Signaler
05/08/2008 à 14:42
"rénald" a écrit dans le message de
news:
| Hello,
Hi !
| J'aimerais définir un clavier spécifique sur une workstation par
| scripte WSH ou WMI.
| du style clavier swiss french.
En VBScript à l'aide du composant DynaWrap :
http://glsft.free.fr/index.php?option=com_content&task=view&idG&Itemid3
--- Coupez ici : ChangeKeyboardLayout.vbs ---
Set oDyn=CreateObject("DynamicWrapper")
oDyn.Register "user32.dll", "LoadKeyboardLayoutW","r=h","i=ll"
oDyn.Register "user32.dll", "SystemParametersInfo", "r=b", "i=llll"
shkl="0000100c" ' SUBLANG_FRENCH_SWISS
hkl=oDyn.LoadKeyboardLayoutW(oDyn.GetBSTRAddr(shkl), 0)
oDyn.SystemParametersInfo 90, 0, oDyn.GetVariantAddr(hkl), 0
--- Coupez ici : ChangeKeyboardLayout.vbs ---
Language Identifier Constants and Strings :
http://msdn.microsoft.com/en-us/library/ms776294(VS.85).aspx
| De plus j'aimerais savoir comment désactiver "file and printer
| sharing" toujours au travers d'un script WSH ou WMI
Par exemple en arrêtant le service Serveur :
--- Coupez ici : DisableFPS.vbs ---
Set oShApp=CreateObject("Shell.Application")
oShApp.ServiceStop "Lanmanserver", True
--- Coupez ici : DisableFPS.vbs ---
--
Gilles LAURENT
MVP Windows Server - Admin Frameworks
http://glsft.free.fr
"rénald" <rnald@discussions.microsoft.com> a écrit dans le message de
news:968B0F9C-D578-4A1B-87C9-4E92CB56B04A@microsoft.com
| Hello,
Hi !
| J'aimerais définir un clavier spécifique sur une workstation par
| scripte WSH ou WMI.
| du style clavier swiss french.
En VBScript à l'aide du composant DynaWrap :
http://glsft.free.fr/index.php?option=com_content&task=view&idG&Itemid3
--- Coupez ici : ChangeKeyboardLayout.vbs ---
Set oDyn=CreateObject("DynamicWrapper")
oDyn.Register "user32.dll", "LoadKeyboardLayoutW","r=h","i=ll"
oDyn.Register "user32.dll", "SystemParametersInfo", "r=b", "i=llll"
shkl="0000100c" ' SUBLANG_FRENCH_SWISS
hkl=oDyn.LoadKeyboardLayoutW(oDyn.GetBSTRAddr(shkl), 0)
oDyn.SystemParametersInfo 90, 0, oDyn.GetVariantAddr(hkl), 0
--- Coupez ici : ChangeKeyboardLayout.vbs ---
Language Identifier Constants and Strings :
http://msdn.microsoft.com/en-us/library/ms776294(VS.85).aspx
| De plus j'aimerais savoir comment désactiver "file and printer
| sharing" toujours au travers d'un script WSH ou WMI
Par exemple en arrêtant le service Serveur :
--- Coupez ici : DisableFPS.vbs ---
Set oShApp=CreateObject("Shell.Application")
oShApp.ServiceStop "Lanmanserver", True
--- Coupez ici : DisableFPS.vbs ---
--
Gilles LAURENT
MVP Windows Server - Admin Frameworks
http://glsft.free.fr
Vous avez filtré cet utilisateur ! Consultez son message
"rénald" a écrit dans le message de
news:
| Hello,
Hi !
| J'aimerais définir un clavier spécifique sur une workstation par
| scripte WSH ou WMI.
| du style clavier swiss french.
En VBScript à l'aide du composant DynaWrap :
http://glsft.free.fr/index.php?option=com_content&task=view&idG&Itemid3
--- Coupez ici : ChangeKeyboardLayout.vbs ---
Set oDyn=CreateObject("DynamicWrapper")
oDyn.Register "user32.dll", "LoadKeyboardLayoutW","r=h","i=ll"
oDyn.Register "user32.dll", "SystemParametersInfo", "r=b", "i=llll"
shkl="0000100c" ' SUBLANG_FRENCH_SWISS
hkl=oDyn.LoadKeyboardLayoutW(oDyn.GetBSTRAddr(shkl), 0)
oDyn.SystemParametersInfo 90, 0, oDyn.GetVariantAddr(hkl), 0
--- Coupez ici : ChangeKeyboardLayout.vbs ---
Language Identifier Constants and Strings :
http://msdn.microsoft.com/en-us/library/ms776294(VS.85).aspx
| De plus j'aimerais savoir comment désactiver "file and printer
| sharing" toujours au travers d'un script WSH ou WMI
Par exemple en arrêtant le service Serveur :
--- Coupez ici : DisableFPS.vbs ---
Set oShApp=CreateObject("Shell.Application")
oShApp.ServiceStop "Lanmanserver", True
--- Coupez ici : DisableFPS.vbs ---
--
Gilles LAURENT
MVP Windows Server - Admin Frameworks
http://glsft.free.fr