Windows – netsh dhcp isn’t working on Windows Server 2008

dhcpnetshwindowswindows-server-2008

Gents,

I am trying to run the following command on a fresh Windows Server 2008 box.

netsh dhcp server 10.2.x.x scope 10.2.x.x show client

and I am given the following error

the following command could not be found:

If I run this on my local windows 7 machien it's fine.

Perhaps I am missing some libraries or options? Any help is appreciated.

Best Answer

You need the DHCP Server role installed on the box before it will let you use the command line tools.

(+Credit to SmallClanger who provided this answer in a comment. -Credit for not posting it as an answer that could be accepted, or voted up/down)