This article is a mirror article of machine translation, please click here to jump to the original article.

View: 3847|Reply: 2

[Web] Use PowerShell commands to clone the IIS app pool

[Copy link]
Posted on 2/4/2023 8:37:15 PM | | | |
Requirements: To deploy a new project to the server IIS site, you need to create a new application pool, the application poolThe account password must be provided by O&MSo every time you create a new application pool, how to copy the existing application pool?

The steps are as follows:

1. First, stop the application pool you want to copy, for example: oldpool;
2. Run the PowerShell program as an administrator; Enter the following command:



3. Restart the source application pool.

The new application pool is successfully created, reference the ID (account and password) of the source application pool, modify the new application pool configuration according to your needs, and then assign the new application pool to the new site.

(End)





Previous:Alibaba Cloud backend to view Wanwang domain name payment orders
Next:.NET/C# uses the && distinction in IF judgments
Posted on 2/4/2023 9:37:27 PM |
Learn it
 Landlord| Posted on 2/4/2023 10:06:55 PM |
Invoking a command from a power shell through a .NET program requires a reference to the System.Management.Automation.dll assembly.


Address: C:\Windows\assembly\GAC_MSIL\System.Management.Automation\1.0.0.0__31bf3856ad364e35\System.Management.Automation.dll


The source code is as follows:



Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com