wobblefoo Posted March 1, 2004 Posted March 1, 2004 Use that attached file...it takes the parameter "name of your lan connection", with quotes. The default name is Local Area Connection.To fully automate this vbs you need to either edit it or create your own that runs it and closses the dialogs.Mine Looks LikeDim WshShell Set WshShell = CreateObject("WScript.Shell")WshShell.Run "%systemdrive%\install\EnableFirewall\firewall.cmd"WScript.Sleep(5000)WshShell.AppActivate("Windows Script Host")WScript.Sleep(1000)WshShell.SendKeys "{ENTER}"WshShell.AppActivate("Windows Script Host")WScript.Sleep(1000)WshShell.SendKeys "{ENTER}"WshShell.AppActivate("Windows Script Host")WScript.Sleep(1000)WshShell.SendKeys "{ENTER}"WshShell.AppActivate("Windows Script Host")WScript.Sleep(1000)WshShell.SendKeys "{ENTER}"WshShell.AppActivate("Windows Script Host")WScript.Sleep(1000)WshShell.SendKeys "{ENTER}"WshShell.AppActivate("Internet Sharing Configuration")WScript.Sleep(1000)WshShell.SendKeys "{ENTER}"WScript.QuitThe cmd batch file just runs the attached vbs...@echo off%systemdrive%\install\EnableFirewall\firewall_enable.vbs "Local Area Connection"Of course edit these files to suit your directory needs.Make sure you run these before installing antivirus software or you will get a possible malicous script warning.firewall_enable.vbs
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now