Create SDDL failed, Error: 1332
Asked Answered
E

5

89

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?

Endosperm answered 17/9, 2013 at 16:56 Comment(2)
Is there a way to be more generic by using SID instead.Currey
@Endosperm : Try with sddl option: "netsh http add urlacl url=https://+:443/ user=everyone sddl=D:(A;;GX;;;IU)"Greengrocery
E
225

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.

Endosperm answered 17/9, 2013 at 17:40 Comment(16)
Thanks! This have haunted me for some time. My local installation is in Swedish so the user parameter should be: "user=alla".Caye
Wow, that was interesting. I had it originally in spanish with a language pack, but I didn't see that coming :)Crystallography
I have my windows in english and I am getting the same error.Nievelt
And for french windows users use this: user="Tout le monde"Signification
In portuguese is also user=todosHinze
in Dutch it's user=iedereenArmand
in Polish: user=WszyscyMacaroni
In spanish is also "user=todos" (as in portuguese).Midden
Just had this issue - in my case, it was that I got the case of the username wrong, using DOMAIN\Username rather than DOMAIN\username.Froward
in Swedish: user=allaInstructions
in Finnish: user=kaikkiPegues
in Norwegian: user=alleDecorate
Quick way to just make this work without knowing much else is to set the domain to Everyone and Host to '+': netsh http add urlacl url=http://+:8282/ user=Everyone listen=yesSikang
To get the "everyone" equivalent in the System locale: wmic sysaccount where "SID='S-1-1-0'" get name. Je vous en prie ;)Finnish
in Russian: user=ВсеTunnage
in German: user=JederEmigration
E
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.

Ectoenzyme answered 14/1, 2015 at 18:44 Comment(0)
D
5

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

Dennison answered 7/6, 2017 at 22:16 Comment(0)
F
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.

Foredate answered 18/7, 2020 at 14:10 Comment(0)
M
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
Mediacy answered 6/8, 2020 at 17:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.