You would do this as follows:
Import-Module WebAdministration
Set-ItemProperty IIS:\AppPools\app-pool-name -name processModel -value @{userName="user_name";password="password";identitytype=3}
See this document here for an explanation, and a reference of the indentity type numeric for the user type you will run the app pool under: http://www.iis.net/configreference/system.applicationhost/applicationpools/add/processmodel
Related Contents:
- How can I add ACL permissions for IIS APPPOOL\* accounts via Powershell?
- Display all sites and bindings in PowerShell
- Config Error: This configuration section cannot be used at this path
- IIS: Where can I find the IIS logs?
- Using Custom Domains With IIS Express
- Enable IIS7 gzip
- How to configure static content cache per folder and extension in IIS7?
- “405 method not allowed” in IIS7.5 for “PUT” method
- IIS – 401.3 – Unauthorized
- How do I create a user account for basic authentication?
- What should I do to make sure that IIS does not recycle my application?
- Removing phantom applications from Application Pools in IIS7
- Directly editing IIS 7 applicationHost.config configuration file
- Service WAS was not found on computer ‘.’
- Certificate does not have a name
- What is the IIS7 default keepalive time?
- How do I restart a single website in IIS7+ using commandline?
- Don’t see Failed Request Tracing in IIS Manager
- Recycle remote IIS app pool from the command line?
- Difference Between Private Memory Limit and Virtual Memory Limit in IIS
- How to get IIS7 to release a locked file?
- Import .pem into IIS 7
- IIS: Content-Length 0 for CSS, Javascript and Images
- How to resolve FTP Error “Failed to retrieve directory listing” for Administrator account in IIS 7.5
- How to limit the memory used by an application in IIS?
- IIS 7.5 optimizations for a site serving only static content
- How can I control which IP address IIS7 uses?
- Prevent URL Rewrite rules from being inherited by subdirectories in IIS7
- Properly handle IIS request with percent sign in url (/%)
- IIS7: How to block access with a web.config file?
- How to change default application in a website in IIS 7.5 on Windows 7
- HTTPS not working; binding set, certificate installed
- applicationhost.config file path in IIS 7, 7.5, 8, 8.5 and IIS 10?
- IIS redirect preserve QueryString?
- Classic ASP on IIS7: refusing to send errors to browser on 500 Internal Server Error
- How to assign a SSL Certificate to IIS7 Site from Command Prompt
- How to register ASP.NET 2.0 to web server(IIS7)?
- HTTP Error 404.17 – Not Found
- What is the difference between DefaultAppPool and Classic .NET AppPool in IIS7?
- Accessing a local website from another computer inside the local network in IIS 7 [closed]
- How do I resolve “HTTP Error 500.19 – Internal Server Error” on IIS7.0 [closed]
- Getting a 404 from WMSvc via MSDeploy.exe
- Installing SSL on a Windows Server 2012 with IIS 8.0
- How do you do production IIS website depoys?
- Using SNI on Windows Server 2012 R2 not working
- What is the difference between XAMPP or WAMP Server & IIS?
- “Configure Web Deploy” menu missing from IIS 8 menu
- What’s the difference between Web App and Virtual Folder in the context of IIS 7.x?
- Using PowerShell to remove lines from a text file if it contains a string
- Missing “Import Web Application” option in Web Deploy 3.6