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
224
votes
12 answers

HttpListener Access Denied

I am writing an HTTP server in C#. When I try to execute the function HttpListener.Start() I get an HttpListenerException saying "Access Denied". When I run the app in admin mode in windows 7 it works fine. Can I make it run without admin mode?…
Randall Flagg
  • 4,834
  • 9
  • 33
  • 45
122
votes
11 answers

Can't start hostednetwork

When I try to run netsh wlan start hostednetwork, I get the following message: C:\Windows\system32>netsh wlan start hostednetwork The hosted network couldn't be started. The group or resource is not in the correct state to perform the requested…
KevinOrr
  • 1,663
  • 3
  • 13
  • 24
95
votes
4 answers

What 'appid' should I use with netsh.exe?

The netsh command wants an appid (see here): netsh http add sslcert ipport=0.0.0.0:8000 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF} How am I supposed to know the GUID netsh wants me to provide?
Brann
  • 31,689
  • 32
  • 113
  • 162
85
votes
3 answers

How to see what is reserving ephemeral port ranges on Windows?

I have a Windows application that needs to use ports 50005 and 50006 but it is being blocked. I see the following when I run netsh int ip show excludedportrange protocol=tcp: Protocol tcp Port Exclusion Ranges Start Port End Port ---------- …
Liam
  • 2,017
  • 3
  • 22
  • 19
68
votes
21 answers

"The parameter is incorrect" error using "netsh http add sslcert"

Following the instructions in How to: Configure a Port with an SSL Certificate, I entered this command on the command line (duh): netsh http add sslcert ipport:10.141.146.227:7001 certhash=5d48e604007b867ae8a69260a4ad318d2c05d8ff…
Derrick
  • 831
  • 1
  • 7
  • 9
66
votes
2 answers

What's the difference between http://*:80 and http://+:80

In learning about Web Deploy I came across some netsh.exe commands that talk about http://+:80 and http://*:80. What do those mean?
kenwarner
  • 28,650
  • 28
  • 130
  • 173
49
votes
4 answers

Set proxy through windows command line including login parameters

I want to set a proxy throught the command line, first thing I found out is that you have to run command line with administrator rights - then the basic proxy set would be: netsh winhttp set proxy SERVER:PORT This works nice, but I also want to add…
jave.web
  • 13,880
  • 12
  • 91
  • 125
38
votes
2 answers

What does a plus sign mean in a http url? -> http://+:80

Possible Duplicate: What's the difference between *:80 and +:80 What does the plus sign excatly mean here: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user Whats the difference between using a star (*) and plus (+) ?
Andreas Zita
  • 7,232
  • 6
  • 54
  • 115
37
votes
10 answers

Using netsh, bind an SSL certificate to a port number is failing

I have followed the instructions in SSL with Self Hosted WCF Service. When I am trying to bind the certificate on Windows 7 using netsh as described in How to: Configure a Port with an SSL Certificate., it is failing as follows. In Windows…
Win Myo Htet
  • 5,377
  • 3
  • 38
  • 56
37
votes
6 answers

How to pass multiple arguments in processStartInfo?

I want to run some cmd command from c#code. I followed some blogs and tutorial and got the answer, but I am in little bit confused i.e how should I pass multiple arguments? I use follow code: System.Diagnostics.Process process = new…
Amit Pal
  • 10,604
  • 26
  • 80
  • 160
34
votes
7 answers

use "netsh wlan set hostednetwork ..." to create a wifi hotspot and the authentication can't work correctly

I run netsh wlan show drivers and get the output containing Hosted network supported : Yes: Interface name: Wireless Network Connection Driver : Broadcom 802.11n Network Adapter Vendor : Broadcom Provider …
Weekend
  • 1,531
  • 1
  • 20
  • 27
33
votes
5 answers

NETSH port forwarding from local port to local port not working

I'm trying to use NETSH PORTPROXY command to forward packets sent to my XP PC (IP 192.168.0.10) on port 8001 to port 80 (I've a XAMPP Apache server listening to port 80). I issued the following: netsh interface portproxy add v4tov4 listenport=8001…
Joshua
  • 1,709
  • 2
  • 24
  • 38
27
votes
2 answers

C# HttpListener without using netsh to register a URI

My application uses a small webserver to server up some files and have a web interface for administration remotely. Right now the user has to use netsh to register the URI like so netsh http add urlacl url=http://+:1233/ user=Chris-PC\Chris Which…
Christopher Tarquini
  • 11,176
  • 16
  • 55
  • 73
21
votes
2 answers

.NET or Win32 Equivalent of "netsh http add urlacl" command

There are several questions around how to allow a self-hosted WCF application to use BasicHttpBinding with HTTP.SYS without requiring administrative privileges. It boils down to needing to grant permission (from an admin context) to the URL, then…
Travis
  • 2,654
  • 4
  • 26
  • 46
20
votes
1 answer

netsh http add urlacl : add reservation for a group

This article explain how to configure a namespace reservation for a user using netsh.exe as follows: netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user The parameter user= is said to be either user or user-group. It works as described…
THX-1138
  • 21,316
  • 26
  • 96
  • 160
1
2 3
27 28