shell - Reset DHCP lease time through CLI -


probably because of many changes made on last few years windows system drops local network connections after 30 minutes. other systems in same network don't have problem assume it's not router.

i found few commands like

set-dhcpserverv4scope -scopeid 192.168.0.1 –leaseduration (new-timespan -hours 12) 

or

 netsh dhcp server scope 192.168.0.1 set optionvalue 000 

neither powershell nor command prompt recognizing them valid commands.

how set dhcp settings default through powershell, cmd or registry?

[neither] powershell nor command prompt recognizing them valid commands.

you'll need enable dhcp tools, either appwiz.cpl (programs/features) or with:

 enable-windowsoptionalfeature -featurename rsatclient-roles-dhcp -online 

this enable both dhcp administration mmc snap-ins, dhcp server powershell module , netsh dhcp context.


assuming you're on client os, you'll need download , install appropriate version of remote server administration tools first


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -