How to reinstall PowerShell Virtual Directory in IIS 7.5, Exchange 2010 SP1?

Hi, When reinstalling CAS role, accidently removed Powershell virtual directory in IIS and also the powershell folder under ClientAccess folder. Now EMC and EMS not working, all with Kerbrose error and WinRM error. How could I restore PowerShell virtual
directory and make it fully functional without a fully reinstall of EX2010? I tried manually add it in IIS and copy the web.config from another EX2010 server but failed. Can't access its module settings in IIS. How to recreate them? Any Powershell script(but
not the exchange one) can do the job?

Hello, thanks for your help so far!
I have a similar issue. But when hitting your 2 cmdlets in powershell, I obtain the following error:
New-PowerShellVirtualDirectory : Web object 'IIS://<FQDN Server>/W3SVC/1/ROOT' can't be found.
At line:1 char:31
+ New-PowerShellVirtualDirectory <<<<  -Name "PowerShell" -InternalURL "http://<FQDN Server>/powershell"
    + CategoryInfo          : NotSpecified: (0:Int32) [New-PowerShellVirtualDirectory], WebObjectNotFoundException
    + FullyQualifiedErrorId : 20F775D1,Microsoft.Exchange.Management.SystemConfigurationTasks.NewPowerShellVirtualDire
   ctory
What am I doing wrong?
The IIS Default website is running. Server is W2008R2 SP1. Exchange 2010 SP3 
You know you're an engineer when you have no life and can prove it mathematically

Similar Messages

  • Exchange 2010 Powershell virtual directory recreation

    Nevermind Fixed.....
    So apparently you have to run those commands in Powershell version 2.0, Exchange 2010 doesn't like powershell 3.0
    to do that type  powershell -version 2.0
    then type the exchange commands. 

    Ok, so I opened up my IIS console today to fix a problem with Exchange and the fix was to change one of the Modules in the Powershell Virtual Directory, but when I clicked on Modules it threw an error.  So I started to try an fix that, all the forums and suggestions I read said to remove the Virtual directory and recreate it...
    My problem is recreating it, I get the following error,  I've googled and searched a lot and can't find how to fix this. 
    This topic first appeared in the Spiceworks Community

  • How to create a virtual directory using EPG

    Hi,
    Can anyone tell me how to create a virtual directory in the EPG that points to a physical directory in the database server?
    Thanks,
    Andrew.

    You can create an Oracle directory that points to an operating system directory in the database product... Does that help?
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Stop redistributable msi creates virtual directory in iis

    We are using the Crystal Reports 2008 .NET redistributable msi as part of our software installation. The msi creates a virtual directory in iis for the crystal reports viewer. Because the msi alters iis, one of our clients cannot install it due to their IT policy. Their policy cannot be changed.
    Is there any way to prevent the msi from creating this virtual directory? We are not using the virtual directory.

    AG's answer is correct. But! If and only if your app does not use the viewer. If your app uses the CR DHTML viewer... well, good by viewer. E.g.; when the app wants to show the viewer, it will either error out, or you will not have the viewer and thus no report...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How to define a virtual directory for 1virtual server?

    Hi there,
    The last part is always the hardest. I succesfully converted my Apache configuration to the SunONE setup but one section and I fail to grasp where I'm going wrong...
    SunONE Webserver 6.1SP5, I have quite a few virtual servers divided over several virtual classes. And now I'm trying to configure a 'virtual directory' (pfx2dir nametrans) limited to a single virtual server but no matter what I try I can't get it to work...
    In the administration guide I read about the NameTrans directive and how it should be used in the default object (in obj.conf ofcourse). So when I have something like this all works as it should, but for all virtual servers in the class:
    <Object name="default">
    NameTrans fn="pfx2dir" from="/files" dir="/opt/websites/catslair/data"
    </Object>So when reading up even more I came across the NSAPI programmers guide which explained that you can have both <Object> and <Client> tags. Because of the 'urlhost' parameter with the Client tag I figured that it should be possible to limit the NameTrans line mentioned above to but one virtual server:
    <Client urlhost="catslair.intranet.lan">
    NameTrans fn="pfx2dir" from="/files" dir="/opt/websites/catslair/data"
    </Client>But whenever I use this approach the server refuses to start and presents me with an error:
    [13/May/2006:16:38:10] config (19621): CORE3185: Invalid configuration: File /usr/local/sun/SUNWwbsvr/https-magi.intranet.lan/config/server.xml, line 178, column 99: HTTP3258: Error processing Mirrors.obj.conf line 51: HTTP2215: directive outside objectAt first I didn't understand exactly what it meant, I even stumbled upon a bug report which triggered the same error (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4979377) but after reading up on this I can only conclude that NameTrans can only be used within an <Object> block. The manuals also hint into this direction since it becomes obvious that the preffered approach is using this in the default object.
    So picture my surprise when I came across http://docs.sun.com/source/817-6252/npgobjcn.html#wp1041206 in the NSAPI programmers guide, its past the table. One of the examples shows this approach:
    <Client odds="25%">
    NameTrans fn="redirect" from="/Pogues" url-prefix="http://pogues.example.com"
    </Client>Because I was sure about urlhost being a parameter for the Client tag I tried copying the above example, but when I give it a try I'm once again greeted with the error I mentioned earlier "directive outside object".
    So can anyone please point me in the right direction? Is it possible to setup a virtual directory for a single virtual server and if so how do I proceed since <Client> doesn't seem to work. thanks in advance for any tips you can give me.
    Message was edited by:
    Lion-O

    Thanks a lot for the example, that fixed the problem.
    I've been reading the NSAPI programmers guide several times now and I was under the impression that you should either use <object> or <client>, never thought about this approach. Now when I re-read it is makes sense, but wasn't very clear at first.
    I think I'll e-mail Sun to suggest an addition of the <Object> tag in their <Client> tag example (http://docs.sun.com/source/817-6252/npgobjcn.html#wp1045056) to make things a little more clear.
    Thanks again, now I can finally implement the final configuration settings and plan for the actual switch later this evening.

  • How can I config virtual directory?

    Hi,
    in oc4j 9,I can edit orion-web.xml like this :<virtual-directory virtual-path="/icon" real-path="d:\csbstest\icons" />,but in oc4j 10133,after i do this,it doesnot work,who can help me?
    Perhaps,oc4j 10132 does not support http service?
    thank you
    lixz
    Edited by: lixinzhu on May 14, 2009 2:34 AM

    Hello Shail
    Thank you ,I config the application-level orion-web.xml and successfully access the virtual directory.But how to edit global-web-app.xml and access the virtual directory?
    lixz

  • Server.MapPath(virtualPath) Returns root directory of controller, it is nor returns the physical path mentioned in the virtual directory in IIS

    I have created a virtual directory "myVirtualFile" virtual path is "\myVirtualFile" and I have given physical path as "D:\Home\myProject\Files"
    Below is my code
    var virtualpath="/myVirtualFile\UserManual";
    var resultPath=Server.MapPath(virtualpath);
    out put is resultPath contains "D:\Home\myProject\Web\client\myVirtualFile\UserManual" Expected out put is "D:\Home\myProject\Files".
    It returns the folder structure of my project. I didn't return the physical path which I mentioned in virtual directory.

    Hi,
    I am not expert on Asp.Net. But I will try my best.
    The following sample is what are
    Virtual paths and Physical paths
    ASP.NET the "~" tilde indicates the root of a virtual path.
    Virtual paths
    ~/App_Data/Sample.xml
    ~/
    ~/Map.txt
    Physical paths
    C:\Website\Files\Sample.xml
    C:\Website\Default.aspx
    C:\Website\Map.txt
    Server.MapPath doesn't find automatically where a file is. It allows to get the physical path
    corresponding to a virtual path (relative to the current request if you don't give an absolute path)
    If above still cannot resolve your issue, please repost in Asp.Net forum, The link as above posted.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to create a virtual directory that you can use over FTP ?

    Hi,
    I have an external disk that I want to use as a virtual directory on my Web server (OSX 10.3.9 SERVER on emac PPC g4).
    Is there any way to mount that disk as a virtual directory that can be viewed and browsed over http and ftp ?
    Thanks a lot !

    I thought had proper permisions set.
    What I see on my FTP is a file instead of a folder. when I try to click on this file I get this message : "550 DIDZEL:permission denied ! Error occured during transfer"

  • How to force Outlook's Junk email fitler to not filter Exchange 2010 SP1 accepted domains?

    Hello,
    I wonder if there really is no way how to reach the result described in the title question. Because
    http://support.microsoft.com/kb/2458522 says:
    This issue occurs because of a functionality change that is introduced in Exchange Server 2010 SP1. In Exchange Server 2010 SP1, domains that are configured as accepted domains are no longer allowed in the junk email lists of a mailbox.
    So please tell us Microsoft how can we force Outlook to accept internal domain as a trusted senders and not apply Junk email filter on it?
    There was already a long discussion about the steps here
    http://social.technet.microsoft.com/Forums/en-US/outlook/thread/15f857c6-0ed4-4004-9d90-cb5d16361752 so please don't offer anything described there.
    Thank you,

    Trying to deal with the Outlook Junk Email Filter is not very easy and had been a pain in the butt.
    The ONLY way to ensure the Outlook 2010 Junk Email filter honors "white listed" emails is to stamp the email with SCL -1. Setting a transport rule will do that but it is not very flexible. 
    I was able to resolve these issues by simply enabling the Exchange 2010 Anti-Spam agents on each hub transport server. We have no Edge Server but we use a couple of Ironports at the gateway which provide the bulk of AntiSpam. We didn't think we would
    need the Exchange AntiSpam so we hadn't initially enabled. After months of trying to resolve people's complaints of emails from internal system ending up in Junk, this solution worked for us.
    This is the order in which it was done.
    1. We set the receive connectors for the internal systems for bypassing Anti Spam. We basically have 2 receive connectors, one for internal system with no relay, and one for internal systems who are allowed external relay.
    Get-ReceiveConnector "server\name of the recieve connector" | Add-ADPermission -User "“NT Authority\Anonymous Logon”  -AccessRights ExtendedRight
    -ExtendedRights ms-exch-bypass-anti-spam
    Note: If you use SMTP Authentication, Exchange will only mark the emails as "Internal" and not assign a SCL of -1. It can only be on anonymous connections.
    Note: We have a separate receive connector for the Ironports delivering external email that will not bypass Anti-Spam. These emails will receive a SCL rating of 0-9
    2. We set the global SCL to 6 (default is 4). You can set it to whatever you want.
    Set-OrganizationConfig -SCLJunkThreshold 6
    So basically, any email tagged with SCL 7-9 will be moved to Junk by Exchange.
    3. Set-ContentFilterConfig -SCLQuarantineEnabled $False -SCLDeleteEnabled $False -SCLRejectEnabled $False
    We don't want delete, reject or quarantine anything on Exchange. Just move email to Junk folder if SCL 7-9 and have user deal with it.
    4. Set the Internal SMTP Servers by adding each Exchange server's IP Address to the Global Transport Settings. I used EMC, Organization Config, Global Settings, Transport Settings properties, Message Delivery tab. Do NOT add any other "internal" servers
    here, only the Exchange servers.
    5. Then we installed the AS agents on each HT Server.
    Starting with the first server
    Stop MSExchange Transport service
    D:\Program Files\Microsoft\Exchange Server\V14\Scripts>.\install-AntispamAgents.ps1
    After installation, disable all the agents except for Content Filtering Agent. This agent has to be enabled for Exchange to stamp the email with SCL -1. I used EMC, Organization Config, Hub Transport. You will see a new tab called Anti-Spam. Disable everything
    except Content Filtering.
    Start MSExchange Transport service.
    Repeat on each HT server. (You won't have to repeat the disabling of the agents as that is a global setting)
    6. You can add global safe senders by doing the following.
    $list = (Get-ContentFilterConfig).BypassedSenders
    $list
    $list.add("[email protected]")
    $list.add("[email protected]")
    Set-ContentFilterConfig -BypassedSenders $list
    The message headers are stamped with
    For emails sent through the Internal connector
    X-MS-Exchange-Organization-Antispam-Report: MessageSecurityAntispamBypass
    X-MS-Exchange-Organization-SCL: -1
    OR
    For external emails from a safe sender
    X-MS-Exchange-Organization-Antispam-Report: ContentFilterConfigBypassedSender
    X-MS-Exchange-Organization-SCL: -1
    OR
    For all other external emails
    X-MS-Exchange-Organization-SCL: 0
    Good Luck. This has basically stopped all the calls about "legitimate" email in Junk Email folder.

  • How do I create a query based distibution group in Exchange 2010?

    Hi,
    We have just moved onto exchange 2010 and I wanting to create query based distribution groups based on OU's. As there is now wizard within 2010 I am a little unsure as to how to go about this. I am led to believe I now need a scritp to do this.
    Any help would be greatly appreciated.
    Thanks

    I have tried this and get the following error. Any Ideas?
    Delivery has failed to these recipients or groups:
    All@Doncaster <mailto:IMCEAEX-_O%3DFIRST%2B20ORGANIZATION_OU%3DEXCHANGE%2B20ADMINISTRATIVE%2B20GROUP%2B20%2B28FYDIBOHF23SPDLT%2B29_CN%3DRECIPIENTS_CN%3DAll%[email protected]>
    The email address that you entered couldn't be found. Check the address and try resending the message. If the problem continues, please contact your helpdesk.
    Diagnostic information for administrators:
    Generating server: CRHV03.crhfsg-uk.co.uk
    IMCEAEX-_O=FIRST+20ORGANIZATION_OU=EXCHANGE+20ADMINISTRATIVE+20GROUP+20+28FYDIBOHF23SPDLT+29_CN=RECIPIENTS_CN=[email protected]
    #550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found ##
    Original message headers:
    Received: from CRHV03.crhfsg-uk.co.uk ([fe80::451b:a27f:42cb:f770]) by
     CRHV03.crhfsg-uk.co.uk ([fe80::451b:a27f:42cb:f770%12]) with mapi id
     14.01.0289.001; Fri, 15 Jul 2011 15:24:50 +0100
    Content-Type: application/ms-tnef; name="winmail.dat"
    Content-Transfer-Encoding: binary
    From: "Smith, Stacey" <[email protected]>
    To: "All@Doncaster" <[email protected]>
    Subject: FW: test
    Thread-Topic: test
    Thread-Index: AcxC+SC29u62U+fVRiGEfoRPRWVvRgAAc31g
    Date: Fri, 15 Jul 2011 15:24:50 +0100
    Message-ID: <[email protected]>
    References: <[email protected]>
    In-Reply-To: <[email protected]>
    Accept-Language: en-GB, en-US
    Content-Language: en-US
    X-MS-Has-Attach: yes
    X-MS-TNEF-Correlator: <[email protected]>
    MIME-Version: 1.0
    X-Originating-IP: [10.39.1.125]

  • How to create a virtual directory for the Report Server

    Hi, I am new to server admin and need help with configuration.
    I would like to map a physical directory on the server so that users can use a virtual path to save report outputs in that location. For example the form will call the report with desname = 'd:\xyz\abc.pdf' and the output file will be saved in a predefined directory on the server. I know how to do it on the forms server using the orion_web.xml but not sure about the report server configuration.
    We are using rwservlet to run reports on 10G release2/Windows 2000.
    Thanks in advance,

    Virtual directories are mapped in the httpd.conf file in the Apache directory as aliases:
    Alias /xyz/ "d:\xyz\"
    You can now call the report output with
    http://server/xyz/abc.pdf

  • How to Delete emails in Specific range on database level (Exchange 2010)

    Hi All,
    Kindly assist me on deleting emails in specific range. i have exported all users mailbox using this below powershell script and in the same manner can we delete all the emails from users mailboxes in the below date range. Please advise
    foreach ($usr in (Get-Mailbox -Database "DB01")) { New-MailboxExportRequest -ContentFilter 
    {(Received -lt "12/07/2012")} -Mailbox $usr -FilePath \\Server01\DB01_Export\$($usr.Alias).pst・}
    Thanks, Venkatesh. &quot;Hardwork Never Fails&quot;

    Hello,
    You can use search-mailbox cmdlet with -deletecontent switch:
    http://technet.microsoft.com/en-us/library/ff459253(v=exchg.141).aspx
    http://andersonpatricio.ca/how-to-delete-messages-using-search-mailbox-in-exchange-server-2010/
    Hope it helps,
    Adam
    www.codetwo.com
    If this post helps resolve your issue, please click the "Mark as Answer" or "Helpful" button at the top of this message. By marking a post as Answered, or Helpful you help others
    find the answer faster.

  • How do You Create a Virtual Directory?

    Can someone post a specific example of how to create a virtual directory for Oracle Portal running on Solaris? I understand that I need to modify the ORACLE_HOME\apache\modplsql\cfg\plsql.conf file, but can't find instuctions what specifically to do. Do I need to make any other changes?
    Thanks!
    Fran Bailey
    EDS

    Well this is what I thought too but I don't think I'm doing something right. I have a default website on port 80 and I created a second site on the same port. They are two different websites. One is the initial one that comes stock with the osx. The second one I created.
    When I browse to my server I get the second site. How can I get the default to be the one that points to the mail, wiki, calendar stuff, while my second domain is something totally different.
    http://myserver (should be the default stuff like mail.)
    http://myserver/mysecondsite (should be my other stuff.)
    The problem is that when I go to http://myserver it is going to http://myserver/mysecondsite
    What am I doing wrong? Thank you.

  • Virtual directory misconfigured

    Exchange server path to kerbauth.dll is wrong / Powershell virtual directory is misconfigured. How to re-created virtual directory for Powershell on affected server.
    Thanks for ypour replies.
    Treat as urgent.

    Hi,
    Please run the following commands one by one to recreate PowerShell virtual directory.
    Get-PowerShellVirtualDirectory -Server <AffectedServer> | Remove-PowerShellVirtualDirectory
    New-PowerShellVirtualDirectory -Server <AffectedServer> -Name PowerShell
    Get-PowerShellVirtualDirectory -Server <AffectedServer> | Set-PowerShellVirtualDirectory -BasicAuthentication:$false
    IISReset
    After PowerShell virtual directory re-creation, please check its modules in IIS and made sure that Kerberos module is native and the path to its DLL is correct.
    Best Regards.

  • Exchange 2010 - Powershell Directory

    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

    Hi,
    Please confirm if your Exchange Management Shell (EMS) and Exchange Admin Center (EAC) can be opened or work well in your Exchange server.
    If you want to reset Windows PowerShell virtual directory for default web site in Internet Information Services (IIS), please
    make sure the original PowerShell virtual directory has been deleted from the server:
    1. No PowerShell listed in IIS Manager.
    2. No PowerShell VD in ADSIEdit (CN=Configuration,DC=domain,DC=.com > CN=Services > CN=Microsoft Exchange > CN=Domain > CN= Administrative Groups > CN=(Groupname) > CN=Servers > CN=(ServerName) > CN=Protocols > CN=HTTP).
    3. Run this command from the Elevated cmd prompt -> cscript.exe Adsutil.vbs delete w3svc/1/root/PowerShell.
    If your EMS can’t be opened, then we can use Windows PowerShell Module shell to create the PowerShell virtual directory to have a try. If it doesn’t work, please collect some event logs or IIS logs in your Exchange server for further analysis.
    Regards,
    Winnie Liang
    TechNet Community Support

Maybe you are looking for

  • Death by Firmware

    I bought the Airport Extreme (gigabit) this summer and it worked fine, supporting a 500 G USB disk. I upgraded one computer to Leopard and the Airport continued to work. That is until a firmware upgrade reared its ugly head and killed my Airport. Hit

  • The procedure of subcontract parts

    we have some raw material need to be send out for sanding blast,if this is a manufactured part,then I can create a subcontract operation specially for it,but this is raw material,who knows how to deal it either from PP side or from PO side Thanks in

  • My_FLVPlybk.contentPath - Loading URL from DB with ASP

    Can someone point me in the right direction here? I am trying to use the FLV Playback component to load FLV's dynamiclly into the flash movie. What I have is a asp page with a Recordset pulling the URL from the DB into the page using Dreamweaver. Thi

  • HyperionFinancialReportingWebApplication server sevice is getting stopped

    Hi All, I am using hyperion 11.1.1.1.0.0 . When I am starting Hyperion Financial Reporting Web Application server service from the services list it is showing started and after some time it is getting stopped by its own. And even I am not getting the

  • Broadcast Cable TV in HD?

    I just bought a Samsung 50" 1080P Plasma for my bedroom, and since it has a built-in HDTV tuner, am I ok just using the standard digital cable box, or do I need to upgrade it with Time Warner or do I just plug the cable line directly into the TV and