Showing posts with label IIS. Show all posts
Showing posts with label IIS. Show all posts

Wednesday, November 23, 2011

Using powershell to get IIS worker process

Preparation:
  • Enable execution of powershell scripts with command:
 Set-ExecutionPolicy RemoteSigned
  • Import module for IIS
  import-module webadministration


Now you should be able to see new drive (IIS)

  get-psdrive


Now, to see worker process for specific pool you only need to execute:


   dir 'IIS:\AppPools\myAppPoolName\WorkerProcesses'

To list all process IDs use:


   dir IIS:\AppPools | Get-ChildItem | Get-ChildItem | Format-Table -AutoSize  processId, appPoolName








Friday, February 20, 2009

Missing svc handler

Windows 2008 comes with installed .NET framework 3.5 but without installed IIS. When you install IIS you don't have support for WCF (there is no handler for svc). To install support for svc open command prompt and go to .net framework 3.0 location (:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\) and run:

servicemodelreg -i