Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the rank-math-pro domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/html/wp-includes/functions.php on line 6114
Enable Configuration APIs of WAS in Windows 11

Enable Configuration APIs of WAS in Windows 11

Install Managed Code Configuration APIs

Configuration APIs in general are tools that allow developers to programmatically manage and modify the settings. In Windows Process Activation Service shortly called WAS, configuration APIs allow developers to create and manage Application Pools, Configure Sites and Applications, Set Protocols, and adjust security settings. This article will walk you through the steps of How to Enable Configuration APIs of WAS in Windows 11 using simple steps. Let’s get started.

Key Steps:

  • To enable Configuration APIs of WAS, we will have to access Windows Features.
  • There are several ways to access Windows Features in Windows 11. We will use Run Command.
  • Open Run command using the shortcut Win Key + R.
  • On the Run command, execute the following command. appwiz.cpl.
  • This command will open Programs and Features window. On the left pane, you can find Turn Windows Features on or off. Click on that.
  • Windows Features dialog box will open now.
  • Here you can find a whole lot of optional Features. Locate Windows Process Activation Service from the list of services available.
  • Click on the plus sign next to Windows Process Activation Service to expand it.
  • Now, you can find Configuration APIs. Click on the checkbox next it and click OK.
  • Once enabled, Windows will search for the required files and apply the necessary changes.
  • Finally, click Close to close the window. If prompted for a restart, kindly do a restart.
  • That is it, Configuration APIs of WAS is now enabled in your Windows 11.

Why use Configuration APIs of WAS?

Why use Configuration APIs of WAS
Why use Configuration APIs of WAS

WAS is a component of Internet Information Services (IIS) that manages the activation and lifecycle of web applications. If you’re manually setting up or changing settings for services like IIS, you have to navigate through multiple menus, which can be time-consuming Configuration APIs allow automating these tasks using a script or a code.

Here are the steps to enable it in Windows 11.

Open Programs and Features using appwiz.cpl
Open Programs and Features using appwiz.cpl
Turn Windows Features on or off
Turn Windows Features on or off
Expand Windows Process Activation Service
Expand Windows Process Activation Service
Enable Configuration APIs of WAS
Enable Configuration APIs of WAS

How to use Windows Process Activation Service Configuration APIs?

Developers can use WAS Configuration APIs as scripts in PowerShell to manage IIS and WAS settings. Here is an example code.

Import-Module WebAdministration
New-WebAppPool -Name "MyAppPool"


Information on the Go!
You can also use Microsoft.Web.Administration library in C# applications to control and manage IIS and WAS settings. Here is an example of creating an application pool.

Take away:

Configuration APIs of WAS in Windows 11 are used because they enable automation, consistency, scalability, and flexibility in managing system configurations. For services like Windows Process Activation Service (WAS), Configuration APIs allow developers to handle everything from creating app pools to configuring security settings programmatically, which is critical for large-scale environments. If you have any queries, do let us know in the comment section. Was this article useful? Please give us a review. For more interesting articles, stay tuned to winsides.com. Happy Managing! Peace out!

Exit mobile version