Morning. I have googled everywhere and can't find an answer to this problem anywhere. Has anyone got an ideas??
PS C:\> New-PowerShellVirtualDirectory -Name "Powershell" -RequireSSL:$False
New-PowerShellVirtualDirectory : An error occurred while creating the IIS virtual directory
'IIS://<SVR>.<Domain>.com/W3SVC/1/ROOT/Powershell' on '<SVR>'.
At line:1 char:1
+ New-PowerShellVirtualDirectory -Name "Powershell" -RequireSSL:$False
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (<SVR>\Powershell (Default Web Site):ADObjectId) [New-PowerShellVir
tualDirectory], InvalidOperationException
+ FullyQualifiedErrorId : 90E6376F,Microsoft.Exchange.Management.SystemConfigurationTasks.NewPowerShellVirtualDire
ctory