Assign a Static IP Address to User
Is there a way to assign a static IP address to users form command line in Windows Server?
I mean, in Windows Server 2003, VPN server, how to set a value from command-line to a "Assign a Static IP Address" in "Dial-In" tab in User properties.
Every time I re-install VPN server, I have to assign IP addresses to users manually. I can create a user, permit dial-in permission from command line, but can't assign IP address
Pls, help.
September 30th, 2011 4:47am
My guess is that you want to assign IP address to the client workstations or notebooks. If it is the case, then consider using address reservation based on MAC address in DHCP server environment. ( http://support.microsoft.com/kb/323441/en-us , http://technet.microsoft.com/en-us/library/cc757206(WS.10).aspx)
Regards
Milos
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2011 9:29am
I would have ask in
Power Shell forum.
Thanks
September 30th, 2011 10:05am
Not sure about your question... In generic terms you should be able to assign a DCHP scope for VPN users that the VPN server would deligate out to VPN clients that have logged in/authed to your network, from within that scope you should be able to set
a reservation. We do that for some users, but we use a vpn appliance.:P Advice offered, If you need more help it is advised to seek the council and advice of paid professionals. The answer is always 42, or reboot.
Free Windows Admin Tool Kit Click here and download it now
September 30th, 2011 10:25am
Is there a way to assign a static IP address to users form command line in Windows Server?
I mean, in Windows Server 2003, VPN server, how to set a value from command-line to a "Assign a Static IP Address" in "Dial-In" tab in User properties.
Every time I re-install VPN server, I have to assign IP addresses to users manually. I can create a user, permit dial-in permission from command line, but can't assign IP address
Pls, help.
September 30th, 2011 11:39am
Try;
netsh interface ip set address name="Local Area Connection 2" source=static addr=192.168.10.10 mask=255.255.255.0 gateway=none
http://technet.microsoft.com/en-us/library/bb490943.aspx
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Free Windows Admin Tool Kit Click here and download it now
October 1st, 2011 7:27pm
Hi,
Thanks for posting here.
I do understand what your concern right now, but unfortunately have not a utility or tool could help to modify the entry for numbers of user account in batch.
Configure static IP address assignment
http://technet.microsoft.com/en-us/library/cc786213(WS.10).aspx
Maybe we can start looking for helping form script forum:
http://social.technet.microsoft.com/Forums/en/ITCG/threads
Meanwhile, we have some ways for us to implement address assignment by setting address pool or DHCP server :
IP Address Assignment
http://technet.microsoft.com/en-us/library/dd469712(WS.10).aspx
Thanks.
Tiger Li
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
October 4th, 2011 2:18am
Hi,
Thanks for posting here.
I do understand what your concern right now, but unfortunately have not a utility or tool could help to modify the entry for numbers of user account in batch.
Configure static IP address assignment
http://technet.microsoft.com/en-us/library/cc786213(WS.10).aspx
Maybe we can start looking for helping form script forum:
http://social.technet.microsoft.com/Forums/en/ITCG/threads
Meanwhile, we have some ways for us to implement address assignment by setting address pool or DHCP server :
IP Address Assignment
http://technet.microsoft.com/en-us/library/dd469712(WS.10).aspx
Thanks.
Tiger Li
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
October 4th, 2011 9:12am


