Posts Tagged: wmi
-
May 15, 2011
3 CommentsRecycle an Application Pool on remote server using Powershell
The following script will let you recycle an Application Pool on a remote server running IIS 6 or IIS 7 (with IIS 6 WMI Compatibility Features installed). The script accepts 2 parameters: a server name and an application pools name, in the following format: PS >.\RecycleIIsAppPool.ps1 server_name "application_pool_name" To obtain a list of application pools...
-
May 14, 2011
No CommentsList IIS application pools on remote server using Powershell
The following script will let you query remote IIS server and return a list of the application pools on that server. It is assumed that you run the script with domain account that is a member of Administrators group on the remote computer but the script can be easily modified to use other credentials. This...
