View Complete Thread
  • Re: IIS powershell performance

    Jul 25, 2019 03:29 AM|Jalpa Panchal|LINK


    This issue occurs because the New-WebApplication and ConvertTo-WebApplication cmdlets generate a high volume of COM calls. 

    To work around this behavior, run PowerShell by using the -mta switch:

    Powershell.exe -mta

    Another workaround, run PowerShell by using the -version 2 switch:

    Powershell.exe -version 2

    Could you share which operating system you are using?



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact