Exchange 2013 installation fails to create IIS Virtual Directory, server 2008 R2

Can someone please help me with this error?

Error:
The following error was generated when "$error.Clear();
          $vdirName = "PowerShell";
          $InternalPowerShellUrl="http://" + $RoleFqdnOrName + "/powershell";
          new-PowerShellVirtualDirectory $vdirName -Role Mailbox -InternalUrl $InternalPowerShellUrl -DomainController $RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$false -RequireSSL:$false -WebSiteName "Default Web Site" -AppPoolId "MSExchangePowerShellFrontEndAppPool";
          new-PowerShellVirtualDirectory $vdirName -Role Mailbox -DomainController $RoleDomainController -BasicAuthentication:$false -WindowsAuthentication:$true -RequireSSL:$true -WebSiteName "Exchange Back End" -Path ($RoleInstallPath + "ClientAccess\PowerShell-Proxy");
        " was run: "An error occurred while creating the IIS virtual directory 'IIS://HCPAEXC.hcpao.gov/W3SVC/1/ROOT/PowerShell' on 'HCPAEXC'.".
Shawn NickellAsked:
Who is Participating?
 
Shawn NickellAuthor Commented:
Well ended up having to go with MS Tech support.  They uninstalled exchange and every windows feature then did the install from the command line and 6 hours later all is well.
0
 
lciprianionutCommented:
Well commands looks OK and it should work. Did you checked the event logs to see any hints there ?
0
 
Shawn NickellAuthor Commented:
problem solved by MS
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.