Questions tagged [web-administration]

Microsoft's API for administering IIS in .NET.

The Microsoft.Web.Administration API:

contains classes that a developer can use to administer IIS Manager. With the classes in this namespace, an administrator can read and write configuration information to ApplicationHost.config, Web.config, and Administration.config files.

The classes in the Microsoft.Web.Administration namespace contain a series of convenient top-level objects that allow the developer to perform administrative tasks. The different logical objects available include sites, applications, application pools, application domains, virtual directories, and worker processes. You can use the API to obtain and work with the configuration and state of these objects and to perform such actions as creating a site, starting or stopping a site, deleting an application pool, recycling an application pool, and even unloading application domains.

80 questions
0
votes
2 answers

Powershell WebAdministration IF Statement with value "False" not working as expected

I'm not sure what I'm missing. This powershell seems to be working the opposite of what I expect. Anyone know why? $loadUserProfileValue = Get-ItemProperty "IIS:\AppPools\.net v4.5" -Name processModel.loadUserProfile.Value Write-Host "Value:…
0
votes
1 answer

Getting specific app pool's worker process in PowerShell returns value but process is already stopped

I have multiple websites - each on a separate app pool. The app pool I'm referring to has 1 worker process. After stopping the app pool, I'm trying to wait and verify that the worker process has stopped. $appPoolName = $appPool.name; …
0
votes
0 answers

powershell find iis virtual application name from url

I have a url, i want to find the application name on which the url is binded. the command get-website -name "url" return nothing as the url name is binded to the Virtual directory. the command get-webbinding -name "url" return the binding but not…
Adolf Ku
  • 21
  • 1
0
votes
1 answer

FileLoad Exception when attempting to alter IIS site configurations through powershell

I'm trying to set up an installation PS script to handle the installation and configuration of two application pools/sites. The creation is handled correctly, and it adjusts the 32-bit applications property fine, but I hit the following error once I…
0
votes
2 answers

How to remove multiple IIS bindings in PowerShell fast?

In a process of version upgrade, our current solution takes all bindings (except for two dummy urls) from one site and setting them on another site. I'm currently removing the bindings through PowerShell but it is super slow. I've looked on about…
Idan Levi
  • 388
  • 3
  • 18
0
votes
1 answer

Make Django REST endpoints inaccessible if no permission exists

currently I am creating a webbackend with Django, where the administration is done with KeyCloak. With KeyCloak I can assign users with certain role (e.g. customers, subscription customers). The customer and subscription customer have different…
deptrai
  • 147
  • 1
  • 9
0
votes
1 answer

Difference between WebCommitDelay and IISCommitDelay

What is the difference between WebCommitDelay and IISCommitDelay? MS docs says the same for both: Instructs the IIS configuration system to delay the commitment of changes. So what should I prefer and why? It looks like they have some differences…
Immelstorn
  • 137
  • 1
  • 12
0
votes
1 answer

How can I correct the Write-Host results of my PowerShell script / WebAdministration foreach loops?

I would like to display the 4 foreach loops results as: Server IIS Site: App Pool: Service: Instead of: Server IIS Site: Server App Pool: Server Service: Code: foreach ($server in $servers) { foreach…
0
votes
0 answers

Powershell Error: missing '=' operator after key in hash literal

I needed to create a script that checks to see if an IIS App Pool for a specific site and its child App Pools are started. (I have a separate script to start "stopped" App Pools as I just want to check if they are stopped) I was able to create the…
sec_eng1
  • 3
  • 2
0
votes
1 answer

Get-IISAppPool returns less results in VSCode than actual number

I have 80 application pools in my local machine, Windows 10 Enterprise. Get-IISAppPool in Powershell ISE returns 80 pools. Get-IISAppPool in Visual Studio Code returns only 5 pools. Recycling IIS does not change the results. $pools =…
0
votes
1 answer

Nginx reverse proxy doesn't work as expected

I have two domains on different nginx(1.15.0) servers (server1 example.com and server2 example.net). I've tried to set up server2 as a reverse proxy with ngx_http_substitutions_filter_module but it doesn't work as expected. Due to my config,…
local
  • 367
  • 2
  • 5
  • 11
0
votes
1 answer

Add AspNetCore argument to IIS application using Microsoft.Web.Administration

I have a need to host multiple instances of an ASP.NET Core application on a server, which each one being configured differently via a command line argument. The web application instances are managed using a Windows Forms application with the…
Valuator
  • 3,262
  • 2
  • 29
  • 53
0
votes
1 answer

Redirect ErrorDocument custom page (500,503) with mod_rewrite?

I want to use a custom page on 500 & 503 errorducument on IBM HTTP Server as well as shortener URL also using Rewrite that code for shorten URL (WCS). Here are the rules I'm using: RewriteCond %{REQUEST_URI} /en/store(.*) RewriteRule …
0
votes
1 answer

HAProxy on Centos 7

This is the error I'm getting when I check the HAProxy status: [root@localhost haproxy]# systemctl status haproxy.service ● haproxy.service - HAProxy Load Balancer Loaded: loaded (/usr/lib/systemd/system/haproxy.service; enabled; vendor preset:…
Nithesh
  • 37
  • 3
0
votes
2 answers

CentOS install php-mbstring error

I am trying to install mbstring on CentOS 6.7 with PHP version 7 : yum --enablerepo=remi install php-mbstring , but I get this error: php70w-common conflicts with php-common-5.4.45-11.el6.remi.x86_64 CentOS was with default PHP version 5.3 (I…
gdfgdfg
  • 3,181
  • 7
  • 37
  • 83