TOCMS WindowsWindows 11Windows 10 Draft for Information Only
ContentNetwork Shell http commands
Network Shell http commandsnetsh http is used to query and configure HTTP.sys settings and parameters.netsh http commandsList of netsh http commands: add iplisten add sslcert add timeout add urlacl delete cache delete iplisten delete sslcert delete timeout delete urlacl flush logbuffer show cachestate show iplisten show servicestate show sslcert show timeout show urlacladd iplistenAdds a new IP address to the IP listen list, excluding the port number.Syntaxadd iplisten [ ipaddress= ] IPAddressParametersipaddress The IPv4 or IPv6 address to be added to the IP listen list. The IP listen list is used to scope the list of addresses to which the HTTP service binds. "0.0.0.0" means any IPv4 address and "::" means any IPv6 address.Requiredadd sslcertAdds a new SSL server certificate binding and corresponding client certificate policies for an IP address and port.Syntaxadd sslcert [ ipport= ] IPAddress:port [ certhash= ] CertHash [ appid= ] GUID [ [ certstorename= ] CertStoreName [ verifyclientcertrevocation= ] enable | disable [verifyrevocationwithcachedclientcertonly= ] enable | disable [ usagecheck= ] enable | disable [ revocationfreshnesstime= ] U-Int [ urlretrievaltimeout= ] U-Int [sslctlidentifier= ] SSLCTIdentifier [ sslctlstorename= ] SLCtStoreName [ dsmapperusage= ] enable | disable [ clientcertnegotiation= ] enable | disable ] ]Parametersipport Specifies the IP address and port for the binding. A colon character (:) is used as a delimiter between the IP address and the port number. Required certhash Specifies the SHA hash of the certificate. This hash is 20 bytes long and is specified as a hexadecimal string. Required appid Specifies the GUID to identify the owning application. Required certstorename Specifies the store name for the certificate. Defaults to MY. Certificate must be stored in the local machine context. Optional verifyclientcertrevocation Specifies the Turns on/off verification of revocation of client certificates. Optional verifyrevocationwithcachedclientcertonly Specifies whether the usage of only cached client certificate for revocation checking is enabled or disabled. Optional usagecheck Specifies whether the usage check is enabled or disabled. Default is enabled. Optional revocationfreshnesstime Specifies the time interval, in seconds, to check for an updated certificate revocation list (CRL). If this value is zero, then the new CRL is updated only if the previous one expires. Optional urlretrievaltimeout Specifies the timeout interval (in milliseconds) after the attempt to retrieve the certificate revocation list for the remote URL. Optional sslctlidentifier Specifies the list of the certificate issuers that can be trusted. This list can be a subset of the certificate issuers that are trusted by the computer. Optional sslctlstorename Specifies the certificate store name under LOCAL_MACHINE where SslCtlIdentifier is stored. Optional dsmapperusage Specifies whether DS mappers is enabled or disabled. Default is disabled. Optional clientcertnegotiation Specifies whether the negotiation of certificate is enabled or disabled. Default is disabled. Optionaladd timeoutAdds a global timeout to the service.Syntaxadd timeout [ timeouttype= ] IdleConnectionTimeout | HeaderWaitTimeout [ value=] U-ShortParameterstimeouttype Type of timeout for setting. value Value of the timeout (in seconds). If the value is in hexadecimal notation, then add the prefix 0x.add urlaclAdds a Uniform Resource Locator (URL) reservation entry. This command reserves the URL for non-administrator users and accounts. The DACL can be specified by using an NT account name with the listen and delegate parameters or by using an SDDL string.Syntaxadd urlacl [ url= ] URL [ [user=] User [ [ listen= ] yes | no [ delegate= ] yes | no ] | [ sddl= ] SDDL ]Parametersurl Specifies the fully qualified Uniform Resource Locator (URL). Required user Specifies the user or user-group name Required listen Specifies one of the following values: yes: Allow the user to register URLs. This is the default value. no: Deny the user from registering URLs. Optional delegate Specifies one of the following values: yes: Allow the user to delegate URLs no: Deny the user from delegating URLs. This is the default value. Optional sddl Specifies an SDDL string that describes the DACL. Optionaldelete cacheDeletes all the entries, or a specified entry, from the HTTP service kernel URI cache.Syntaxdelete cache [ [ url= ] URL [ [recursive= ] yes | no ]Parametersurl Specifies the fully qualified Uniform Resource Locator (URL) that you want to delete. Optional recursive Specifies whether all entries under the url cache get removed. yes: remove all entries no: do not remove all entries Optionaldelete iplistenDeletes an IP address from the IP listen list. The IP listen list is used to scope the list of addresses to which the HTTP service binds.Syntaxdelete iplisten [ ipaddress= ] IPAddressParametersipaddress The IPv4 or IPv6 address to be deleted from the IP listen list. The IP listen list is used to scope the list of addresses to which the HTTP service binds. "0.0.0.0" means any IPv4 address and "::" means any IPv6 address. This does not include the port number. Requireddelete sslcertDeletes SSL server certificate bindings and corresponding client certificate policies for an IP address and port.Syntaxdelete sslcert [ ipport= ] IPAddress:portParametersipport Specifies the IPv4 or IPv6 address and port for which the SSL certificate bindings get deleted. A colon character (:) is used as a delimiter between the IP address and the port number. Requireddelete timeoutDeletes a global timeout and makes the service revert to default values.Syntaxdelete timeout [ timeouttype= ] idleconnectiontimeout | headerwaittimeoutParameterstimeouttype Specifies the type of timeout setting. Requireddelete urlaclDeletes URL reservations.Syntaxdelete urlacl [ url= ] URLParametersurl Specifies the fully qualified Uniform Resource Locator (URL) that you want to delete. Requiredflush logbufferFlushes the internal buffers for the logfiles.Syntaxflush logbuffershow cachestateLists cached URI resources and their associated properties. This command lists all resources and their associated properties that are cached in HTTP response cache or displays a single resource and its associated properties.Syntaxshow cachestate [ [url= ] URL]Parametersurl Specifies the fully qualified URL that you want to display. If not specified, display all URLs. The URL could also be a prefix to registered URLs. Optionalshow iplistenDisplays all IP addresses in the IP listen list. The IP listen list is used to scope the list of addresses to which the HTTP service binds. "0.0.0.0" means any IPv4 address and "::" means any IPv6 address.Syntaxshow iplistenshow servicestateDisplays a snapshot of the HTTP service.Syntaxshow servicestate [ [ view= ] session | requestq ] [ [ verbose= ] yes | no ]ParametersView Specifies whether to view a snapshot of the HTTP service state based on the server session or on the request queues. Optional Verbose Specifies whether to display verbose information that also shows property information. Optionalshow sslcertDisplays Secure Sockets Layer (SSL) server certificate bindings and corresponding client certificate policies for an IP address and port.Syntaxshow sslcert [ ipport= ] IPAddress:portParametersipport Specifies the IPv4 or IPv6 address and port for which the SSL certificate bindings display. A colon character (:) is used as a delimiter between the IP address and the port number. If you do not specify ipport, all bindings are displayed. Requiredshow timeoutDisplays, in seconds, the timeout values of the HTTP service.Syntaxshow timeoutshow urlaclDisplays discretionary access control lists (DACLs) for the specified reserved URL or all reserved URLs.Syntaxshow urlacl [ [url= ] URL]Parametersurl Specifies the fully qualified URL that you want to display. If not specfied, display all URLs. OptionalResources and References
©sideway ID: 210300026 Last Updated: 3/26/2021 Revision: 0 Latest Updated Links
|
Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 9 Reference 79 Computer Hardware 251 Software Application 213 Digitization 32 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019