Windows Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsWindows Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 7th, 2003, 08:11 PM
c.ronaldo c.ronaldo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 8 c.ronaldo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
enabling ICS under command line

is it possible to enable Internet Connection Sharing under command line on Windows 2000 pro or Windows XP pro ?

or how can I schedule a time for when to enable or disable ?

thanks

Reply With Quote
  #2  
Old October 11th, 2003, 11:36 PM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 81
Yes it is possible to program ICS from the command line, but it is messy and probably not something a novice should attempt (if you are one). The reason for the GUI wizard, is ICS makes several changes to your system. Here is a list of the things it changes.

IP address set to 192.168.0.1 Configured with a subnet mask of 255.255.255.0 on the LAN adapter that is connected to the small office or home office network.

Autodial feature Enabled.

Static default IP route Created when the dial-up connection is established.

Internet connection sharing service Started.

DHCP allocator Enabled with the default range of 192.168.0.1 and a subnet mask of 255.255.255.0.

DNS proxy Enabled.


Each of these items can be configured using the netsh.exe utility. Here is an example of what you would need to put in a batch file to program JUST the "DHCP allocator"

Code:
netsh routing ip autodhcp install
netsh routing ip autodhcp set interface name="Local Area Connection" mode=enable
netsh routing ip autodhcp set global 192.168.0.1 255.255.255.0 11520


The reason I haven't provided any more code than this is I have never done this before and don't have an existing script to draw from. What I have presented above is what I was able to piece together in about 30-45 minutes of reading on the internet. There is no definitive answer out there, but the pieces of the puzzle exist if you are willing to search them out and put them together.


Here is what I do know you can do to configure the various settings needed to enable ICS.

Use netsh.exe for:
-- setting interface ip address and subnet mask
-- installing, enabling, and setting autodhcp
-- installing, enabling, and setting dnsproxy
-- set static default route (I think but am not sure)

Use sc.exe (command line utility that controls services) for:
-- start ICS service

I do not know how you would enable the AutoDial feature


Good luck,

Raklet

Reply With Quote
  #3  
Old October 12th, 2003, 10:54 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
The "autodial" feature is implemented as a service in XP too. But this is all I can contribute here...

hth,
M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #4  
Old October 12th, 2003, 02:22 PM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 81
Quote:
The "autodial" feature is implemented as a service


Really? Which service is it? I looked through the list but didn't see one titled "autodial".

Reply With Quote
  #5  
Old October 13th, 2003, 11:52 AM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 42 m 50 sec
Reputation Power: 184
Sorry, I can't supply the original english name because I only have a localized windows version.

It is "Verwaltung für automatische RAS-Verbindung" in german which translates to "Manage automatic RAS connections".
The description (translated) says: "This service connects to a remote network when a program references a remote-DNS or NETBIOS address".

Can you find it now? I don't know that much about windows services, it says "svchost.exe -k netsvcs", no idea if this is only a wrapper thou...

hth,
M.

Reply With Quote
  #6  
Old October 13th, 2003, 01:31 PM
raklet's Avatar
raklet raklet is offline
Perl Hacker turned Farmer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2003
Location: Idaho Boondocks
Posts: 1,455 raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level)raklet User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 13 h 51 m 58 sec
Reputation Power: 81
Got it. "Remote Access Auto Connection Manager"

Reply With Quote
  #7  
Old October 13th, 2003, 01:59 PM
w_ashley w_ashley is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: see webpage
Posts: 33 w_ashley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
svchost.exe is a system resource for win xp
svchost - svchost.exe - Process Information

Process File: svchost or svchost.exe
Process Name: Service Host Process
Description: The Service Host Process is generic host process for services that are run from dynamic-link libraries (DLLs)
Common Errors: N/A
System Process: Yes
__________________
mkay so like whatever

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsWindows Help > enabling ICS under command line


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT