Questions tagged [netsh]

netsh is the command name for the NetShell utility, which is used as a scripting interface for monitoring and configuring network interfaces, firewall, routing and remote access under Microsoft Windows.

Useful links: NETSH on technet. NETSH on SS64 help pages.

410 questions
19
votes
3 answers

How to fix a AutomaticUrlReservationCreationFailureException when using Nancy FX Self Host

When using Nancy FX, I came across the following exception which was thrown when trying to fire up a web service: AutomaticUrlReservationCreationFailureException Having looked into it in a bit more detail, I discovered that the way to fix this was…
Charlie_
  • 193
  • 1
  • 1
  • 4
16
votes
7 answers

How to create an IP alias on Windows

I need to create an alias for my network interface such that it can be accessed locally with either 127.0.0.1 or 33.33.33.33. In *nix I would do this: sudo ifconfig en1 inet 33.33.33.33/32 alias It appears that the netsh tool may be able to do the…
codefinger
  • 10,088
  • 7
  • 39
  • 51
14
votes
3 answers

HTTP could not register URL

I'm trying start a service that uses port 8081. The service stop immediately after start. I look into event viewer and i see this: Service cannot be started. System.ServiceModel.AddressAlreadyInUseException: HTTP could not register URL…
hmiguel
  • 343
  • 1
  • 4
  • 16
14
votes
1 answer

WCF selfhosted service, installer class and netsh

I have a selfhosted WCF service application which I want to deploy by a msi installer package. The endpoint uses http port 8888. In order to startup the project under windows 2008 after installation I have to either run the program as administrator…
Jeldrik
  • 1,377
  • 1
  • 10
  • 35
13
votes
1 answer

SSL Certificate add failed, Error: 183 Cannot create a file when that file already exists - How to bound certificate to ipport?

I'm trying to execute this command in CMD: netsh http add sslcert ipport=0.0.0.0:443 certhash=‎89857a42309423c239f42392384a appid={214124cd-d05b-4309-9af9-13123454a52b} and got error message: SSL Certificate add failed, Error: 183 Cannot create a…
essential
  • 648
  • 1
  • 7
  • 19
12
votes
2 answers

Changing IP address via command line on Windows XP

I'm trying to change a machine IP address via cmd.exe with this code: netsh int ip set address name="Local Area Connection" source=static addr=???.???.???.??? mask=255.255.255.0 The problem that the IP doesn't change (checked by ipconfig) but…
Oren Yakobi
  • 279
  • 1
  • 4
  • 14
12
votes
3 answers

Add wifi profile with password in windows programmatically

Is it possible to programmatically add a wifi profile to a windows operating system (minimum version windows 7)? I tried netsh with add profile and connect, but it doesn't work for me. Is there any powershell commands which does this? I want to set…
cSteusloff
  • 2,487
  • 7
  • 30
  • 51
11
votes
2 answers

netsh http add urlacl problem

I'm trying to set up some ports from a WIX installer. For WinXP we use httpcfg in a custom action and this works fine. For Win7, we're trying: netsh http add urlacl url=http://127.0.0.1/8346/ user="NT AUTHORITY\Authenticated Users"…
BadCat914
  • 111
  • 1
  • 1
  • 3
8
votes
5 answers

Duplicated Windows firewall rules (Netsh AdvFirewall firewall)

I've noticed that when we create a firewall rule through netsh advfirewall firewall, it can be run multiple times, creating multiple identical firewall rules. Is there any way of checking if the firewall rule exists before attempting to create a new…
ShaneC
  • 2,237
  • 2
  • 32
  • 53
8
votes
2 answers

How configure SSL for an IIS Express site that uses multiple hostnames?

My web application project encompasses multiple web sites served under the umbrella of a single IIS Express site. I succeeded in following Scott Hanselman's excellent blog post, and IIS Express successfully serves both http://foo.local and…
Bryan
  • 1,431
  • 1
  • 17
  • 22
8
votes
3 answers

Querying a DHCP server in C#

I need to get the mapping of MAC to IP stored on DHCP server, either through a program running on the server itself or preferably through a program running on one of the DHCP clients. I understand netsh utility can be used to get the dump however i…
Kazoom
  • 5,659
  • 16
  • 56
  • 69
8
votes
2 answers

How to forward one local port to another?

I have a HTTP proxy server running on port 127.0.0.1:8888. I need to redirect a HTTP client binding to 127.0.0.1:8080 to be forwarded to 127.0.0.1:8888. I tried using netsh.exe utility in Windows. I have DHCP client service running in my windows…
Jehonathan Thomas
  • 2,110
  • 1
  • 28
  • 34
8
votes
0 answers

Winsock tracing can't get verbose level events

while it's very easy to get info level tracing started with Windows-Winsock-AFD using: netsh trace start provider=Microsoft-Windows-Winsock-AFD TraceFile=my_ winsock_log3_trace.etl the file generated seems to not include verbose level events such…
user1730969
  • 462
  • 3
  • 10
7
votes
2 answers

How to list bluetooth devices near me using PowerShell

How to list all Bluetooth devices paired or currently near me and particullary MAC adress ? I want the equivalent of the command : netsh wlan show network mode=bssid I am able to list all Bluetooth devices and characteristics but not MAC adress…
Yoan
  • 75
  • 1
  • 5
7
votes
5 answers

How to get the Forgetten password of netsh wlan hostednetwork

I have created a hostednetwork using the netsh wlan set hostednetwork command and i am able to connect it with my device. now i want to connect my new phone with this hostednetwork but i did not remember the password what i have been set. I can…
Prabhat Yadav
  • 1,181
  • 6
  • 18
  • 29
1
2
3
27 28