Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7028493
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:23:40+00:00 2026-05-28T00:23:40+00:00

Sorry about the non-descriptive title; Had no Idea how to put it. So when

  • 0

Sorry about the non-descriptive title; Had no Idea how to put it. So when I run the following code in command prompt

%systemroot%\system32\inetsrv\appcmd.exe list config "Default Web Site/Local\Service" -section:system.webServer/security/authentication/windowsAuthentication /clr:4

I get a snippet of xml back which includes

<WindowsAuthentication enabled="false authPersistNonNTLM="true">

I want to enable windows authentication for this service so I then run

%systemroot%\system32\inetsrv\appcmd.exe set config "Default Web Site/Local/service" -section:system.webServer/security/authentication/windowsAuthentication /enabled:"True" /commit:apphost 

If I rerun the orignal list command it is still returning that the windowsAuthentication enabled state is false. The set command is working correctly and enabling/disabling the windowsAuthentication which I check by going into IIS Manager. I figured the set and list should be modifying or returing the same value. I need to get the list working (or some other similar command) because I need to check the state of the authentication for my services. So the question is am I missing something? Why do the set and list appear to be working of two different values, and how can I get this command (or a similar command) to return the enable state for a services authentication that I see in IIS Manager?

I’m running IIS 7 by the way. Not sure if that makes a difference or not. Sorry if I’ve left out any other required details. Not that familiar with IIS.

Cheers in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:23:41+00:00Added an answer on May 28, 2026 at 12:23 am

    The appcmd tool is sensitive to slashes.

    In the list option, make sure you only use forward slashes otherwise the information returned will be from the first matching default and not the location you asked for.

    %systemroot%\system32\inetsrv\appcmd.exe list config "Default Web Site/Local/Service" -section:system.webServer/security/authentication/windowsAuthentication /clr:4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry about the bad title, I couldn't think of a more descriptive one. The
Sorry about the vague subject but I couldn't think what to put. Here's my
Sorry about the wording of the question, I don't really know how to put
Sorry about a vague title, but here's what i am trying to do. I
Sorry about the title, I couldn't think of a better way to describe the
Sorry about the extremely vague question title (any suggestions for improvements welcome) I have
Sorry about the wording for my question title. I have a basic HTML anchor
I'm sorry about the naive question. I have the following: public Array Values {
I am sorry about the amount of code here. I have tried to show
First of all, sorry about that title. I'm not the best at writing those

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.