Solved

remove-powershellvirtudirectory not working

Posted on 2011-02-10
5
1,658 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
ID: 34864889
I typo'd the syntax in the title line.  My bad.
0
 
LVL 26

Expert Comment

by:e_aravind
ID: 34882940
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
ID: 34887643
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
ID: 34887665
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
ID: 34893036
Thanks! worked great
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a User Mailbox 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 Recipients >> Mailb…
This video discusses moving either the default database or any database to a new volume.

777 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