Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

service sous NT

1 réponse
Avatar
francis
Bonjour,
Comment lancer un service NT sur une autre machine NT en
commande ?
Merci

1 réponse

Avatar
Jean-Claude BELLAMY
Dans le message news:1d0fc01c453bc$051fbe60$ ,
francis s'est ainsi exprimé:

Bonjour,
Comment lancer un service NT sur une autre machine NT en
commande ?



1) avec mon script "SETSVC.VBS"
http://www.bellamyjc.org/fr/vbsdownload.html#setsvc

Script d'arrêt ou démarrage de services
sur machine locale ou distante
Syntaxe :
setsvc -m<nom_machine> -s<service> -e<état>
<nom_machine> : nom NetBIOS (si vide => machine locale)
<service> : nom du service (entre guillemets)
<état> : START|STOP (si vide :affiche l'état actuel)

mais comme VBS/WSH/MWI ne sont pas installés au départ sous NT4, il faudra
les installer si ce n'est pas déjà fait
http://download.microsoft.com/download/winscript56/Install/5.6/W98NT42KMe/FR/scr56fr.exe
http://download.microsoft.com/download/platformsdk/wmint4/1.5/NT4/EN-US/wmint4.EXE

2) avec l'utilitaire SC.EXE du NT Resource kit (NT4 et W2k)
NB: il ne fait pas partie des outils gratuits

DESCRIPTION:
SC is a command line program used for communicating with the
NT Service Controller and services.
USAGE:
sc <server> [command] [service name] <option1> <option2>...


--
May the Force be with You!
La Connaissance s'accroît quand on la partage
----------------------------------------------------------
Jean-Claude BELLAMY [MVP] - http://www.bellamyjc.org
http://www.bellamyjc.org *