Profile under C:\Users\”websitename” after IIS website when opened from localhost\websitename

huangapple go评论48阅读模式
英文:

Profile under C:\Users\ "websitename" after IIS website when opened from localhost\websitename

问题

I have a website under C:\inetpub\wwwroot\websitename. If I open it (any browser), Windows creates a user called "websitename" under C:\Users, C:\Users\websitename.

That becomes the actual ACTIVE profile, breaking, well, basically everything.

The user is created in the registry as well here:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-82-1552494301-1869227342-3327666674-1719597003-3231809566

with a path added: C:\Users\websitename

I have never encountered this before.

Anyone seen this and have a resolution? IIS 10 on Windows 10 Pro.

英文:

I have a website under C:\inetpub\wwwroot\websitename. If I open it (any browser), Windows creates a user called "websitename" under C:\Users, C:\Users\websitename.

That becomes the actual ACTIVE profile, breaking, well, basically everything.

The user is created in the registry as well here:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\S-1-5-82-1552494301-1869227342-3327666674-1719597003-3231809566

with a path added: C:\Users\websitename

I have never encountered this before.

Anyone seen this and have a resolution? IIS 10 on Windows 10 Pro.

答案1

得分: 1

这主要是因为在添加站点时,您没有指定一个已存在的应用程序池(如DefaultAppPool)。在这种情况下,当您添加一个站点时,它将默认自动添加一个新的应用程序池(与您的站点名称相同),并且它包含属性LoadUserProfile=true

因此,这是在这种情况下发生此问题的主要原因。

如果您想避免这种现象,您可以首先创建一个应用程序池,并在添加站点之前将其属性LoadUserProfile=false设置为false,或者使用现有的应用程序池。

您可以在官方文档中找到相应的描述:Application Pool Identities - User profile

英文:

Most likely, this is because you did not specify an existing application pool (such as DefaultAppPool) when adding the site. At this time, when you add a site, it will automatically add a new application pool by default(with the same name as your sitename), and it contains the property LoadUserProfile=true.

So this is the main reason why this problem occurs in this case.

Profile under C:\Users\”websitename” after IIS website when opened from localhost\websitename
Profile under C:\Users\”websitename” after IIS website when opened from localhost\websitename

If you want to avoid this phenomenon, you can create an application pool first, and set its property LoadUserProfile=false before adding the site, or use an existing application pool.

And you can find the corresponding description in the official documentation: Application Pool Identities - User profile

huangapple
  • 本文由 发表于 2023年4月13日 19:21:41
  • 转载请务必保留本文链接:https://go.coder-hub.com/76004833.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定