Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netsh and httpcfg

Tags:

windows

wcf

I have used following command in Win7:

netsh http add urlacl url=[http://+:1234/] user=\Everyone

But it does not work in WinXP. So I downloaded httpcfg.exe,but cannot find appropriate syntax to convert my original command to httpcfg format

like image 356
rohit sharma Avatar asked Apr 18 '26 14:04

rohit sharma


1 Answers

MSDN seems to have an example for this. It doesn't seem like you can just specify the user as with netsh. httpcfg takes a Security Descriptor Definition Language (SDDL) string.

Generating SDDL strings is described in another question. Basically, you can read the specification, or you can set the desired permissions on a random file on your system and then use cacls FILE_PATH /S to get the SDDL.

So after generating the SDDL, you'd probably want something like:

httpcfg set urlacl /u http://+:1234/ /a "<SDDL>"
like image 147
kichik Avatar answered Apr 20 '26 08:04

kichik



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!