创建 SDDL 失败,错误: 1332

我试图在 VisualStudio2010SP1中使用 IISExpress。

当我运行这个命令时,我正在跟随这个 教程

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

我得到了这样的信息:

Create SDDL failed, Error: 1332

发生什么事了?

45971 次浏览

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.

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.

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

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.

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