SUPINFO International University

SUPINFO Institute of Information Technology
Laboratoire Microsoft




Autoriser une application dans le firewall d'XP SP2

Accueil > Script > maintenance > Autoriser une application dans le firewall d'XP SP2

Autoriser une application dans le firewall d'XP SP2

Par Joachim GOMARD, LABORATOIRE SUPINFO DES TECHNOLOGIES MICROSOFT
Publiée le 08/11/2004 vers 14h.

Description :
Ce script VBS permet d'autoriser une application dans le firewall d'XP SP2. Il suffit de remplacer les mots en gras par les informations de l'application souhaitée.

Script :

Set objFirewall = CreateObject("HNetCfg.FwMgr")
Set objPolicy = objFirewall.LocalPolicy.CurrentProfile

Set objApplication = CreateObject("HNetCfg.FwAuthorizedApplication")
objApplication.Name = "Free Cell"
objApplication.IPVersion = 2
objApplication.ProcessImageFileName = "c:\windows\system32\freecell.exe"
objApplication.RemoteAddresses = "*"
objApplication.Scope = 0
objApplication.Enabled = True

Set colApplications = objPolicy.AuthorizedApplications
colApplications.Add(objApplication)



Proposer un script

Notre avis :

Votre avis :

Réactions :
0

Votants :
8

Visites :
13845

1
2
3
4
5




Retrouvez ci-dessous les autres sections du Laboratoire Microsoft

Définitions

Accès direct aux définitions :
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Effectuez une recherche dans les définitions :