Solved

remove-powershellvirtudirectory not working

Posted on 2011-02-10
5
1,682 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
[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
  • 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
how to add IIS SMTP to handle application/Scanner relays into office 365.

751 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