Solved

remove-powershellvirtudirectory not working

Posted on 2011-02-10
5
1,637 Views
Last Modified: 2012-05-11
IN an attempt to troubleshoot a different issue with my Exchange 2010 setup I'm trying to remove the powershell VD... which is failing.

I run "get-powershellvirtualdirectory" and the results list three different VD's, two of which it says "WARNING: IIS://servername/W3SVC/1/ROOT/vdname wasn't found"  Now those two entried it gives that warning for are the names of VD's that I manually created earlier.  I deleted them by "Removin" in the IIS Manager. (I think now that was the wrong way)

Anyway since those two false entries are listed, that means their in a file somewhere right?  It would be better if they weren't correct?  How would I remove references to them?

Secondly, When I run "remove-powershellvirtualdirectory -identity "new powershell" (which is the name of the current powershell VD) I get another error "Operation cannot be performed because object blah couldn't be found on 'servername'"

So how can I successfully remove these?
0
Comment
Question by:Ben Hart
  • 3
  • 2
5 Comments
 
LVL 14

Author Comment

by:Ben Hart
Comment Utility
I typo'd the syntax in the title line.  My bad.
0
 
LVL 26

Expert Comment

by:e_aravind
Comment Utility
To delete\recreate the PowerShell Virtual Directory
a.Open Windows PowerShell Using Administrative Credentials
b.Load Exchange 2010 Snapin using the following command
c.Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010


0
 
LVL 14

Author Comment

by:Ben Hart
Comment Utility
I assumed all the required snapins would be loaded automatically using the "Windows Powershell Modules"...?
0
 
LVL 26

Accepted Solution

by:
e_aravind earned 500 total points
Comment Utility
IMO, Nope

By default the normal access wont have the exchange commands
While the power-shell with "Import system modules" would allow you to execute exchange commands.
0
 
LVL 14

Author Comment

by:Ben Hart
Comment Utility
Thanks! worked great
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now