Solved

Can't create PowerShell virtual directory

Posted on 2013-01-11
6
2,753 Views
Last Modified: 2013-05-15
Hi guys,

I ran into an issue creating the virtual directory as described. I get an error stating the following:

New-PowerShellVirtualDirectory : An error occurred while creating the IIS virtual directory ‘IIS://servername.domain.local/W3SVC/1/ROOT/PowerShell’ on ‘server’.

New-PowerShellVirtualDirectory -Name PowerShell -RequireSSL:$False
CategoryInfo : InvalidOperation: (server\P…fault Web Site):ADObjectId) [New-PowerShellVirtualDirectory],

and so on.

Any suggestions?
0
Comment
Question by:Joemt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
6 Comments
 
LVL 18

Expert Comment

by:Sushil Sonawane
ID: 38768506
Please check the remote registry properties service started and startup type automatic.

For more info refer below link:
http://technet.microsoft.com/en-us/library/dd159915%28EXCHG.80%29.aspx
0
 

Author Comment

by:Joemt
ID: 38768519
Remote Registry service was started and set to automatic startup. Would a screenshot or any other info aid you guys?
0
 

Author Comment

by:Joemt
ID: 38768554
Here is a screenshot of the error that is generated when attempting to create the virtual directory.
Powershell-error.jpg
0
Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

 

Author Comment

by:Joemt
ID: 38768998
Ok, i have resolved my previous issue by manually creating the MSExchangePowerShellAppPool in IIS. Apparently it was missing. I then manually created the PowerShell virtual directory and matched it's settings to another server i had for comparison.

I'm now receiving and error that states:

Processing data for remote command failed with the following error message: WinRM cannot complete the operation. Verify that the specific computer name is valid, that the computer is accessible over the network, and that the firewall exception for the WinRM service is enabled and allows access from this computer. By default, the WinRM firewall exception for public profiles limits access to remote computer within the same local subnet.
0
 

Accepted Solution

by:
Joemt earned 0 total points
ID: 38774918
This morning, out of morbid curiosity, I checked the Exchange Management Console. Turns out over the weekend the stars aligned just right and now it's working again. I can safely say that nothing was changed, and no reboots happened over the weekend. I can only guess that some kind of maintenance cleared the issue. Whether it was the Kerberos keychain or something else, I don't know.

If anyone has any ideas as to what could have happened, I would love to know for future reference.

Thanks all!
0
 

Author Closing Comment

by:Joemt
ID: 39167434
Found the answer
0

Featured Post

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In-place Upgrading Dirsync to Azure AD Connect
For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

689 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question