86

I'm trying to use IIS Express with Visual Studio 2010 SP1.

I'm following this tutorial. When I run this command.

netsh http add urlacl url=https://Melnibone:443/ user=everyone

I get this message:

Create SDDL failed, Error: 1332

What's happening?

VansFannel
  • 41,682
  • 96
  • 329
  • 561

5 Answers5

212

Well, I have found the problem.

I'm running Windows 7 in Spanish, so the right command is:

netsh http add urlacl url=https://Melnibone:443/ user=todos

Funny, isn't it?

UPDATE:

If you want, you can add a comment to this question telling us how it is in your language.

VansFannel
  • 41,682
  • 96
  • 329
  • 561
9

For me, this issue was caused because there was already an HTTP reservation for the address and port I was using when tried to add an HTTPS reservation.

I found out what was going on when I ran NETSH HTTP SHOW URLACL and saw that the address was already reserved with a different protocol.

Josh
  • 2,223
  • 1
  • 25
  • 18
5

I recently ran into this issue. The solution for me was to run the command prompt as an administrator.

Jeannine Lee
  • 101
  • 1
  • 5
2

I want to add that it might be the installation language. I had to use the german word "jeder" though my system language was english.

Valon_Inc
  • 31
  • 3
0

I know this question was asked a long time ago, but as there is no general answer yet, so i thought i'll share my approach. There's an easy way to filter for this with a few batch commands.

for /f "skip=1delims=" %%a in (
   'wmic sysaccount where "SID='S-1-1-0'" get name'
) do set "sid=%%a"&goto next
:next

The loop is necessary because the "get name" part gives the whole table with the heading so we filter for the second line. This code then stores the value of the SID according to your locale in the "sid" variable, so you only have to refer to this when you want to use it.

In this case the whole code would look like this:

for /f "skip=1delims=" %%a in (
   'wmic sysaccount where "SID='S-1-1-0'" get name'
) do set "sid=%%a"&goto next
:next
netsh http add urlacl url=https://Melnibone:443/ user=%sid%

NOTE: How you filter for the second line is up to you, the real "magic" happens in this line:

wmic sysaccount where "SID='S-1-1-0'" get name