Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Do a Ping from .NET with a non-admin user

Yup, non admin users cannot do a ping from .net. A non admin user cannot create Raw Sockets.  To do this with a non admin user you have to do the following:

add the following registry key: AllowUserRawAccess

Key: Tcpip\Parameters

Value Type: REG_DWORD-Boolean

Valid Range: 0, 1 (False, True)

Default: 0 (False)

Description: This parameter controls access to raw sockets. If true, non administrative users have access to raw sockets. By default, only administrators have access to raw sockets.

No Comments