Cannot recreate ActiveSync Virtual Directory
[PS] C:\>New-ActiveSyncVirtualDirectory -Server MyServer1 -WebsiteName "Default Web Site" -ExternalUrl https://mail.myDomain.org/Microsoft-Server-Activesync New-ActiveSyncVirtualDirectory : A parameter cannot be found that matches parameter name 'Server'. Let's try with quotes... [PS] C:\>New-ActiveSyncVirtualDirectory -Server "MyServer1" -WebsiteName "Default Web Site" -ExternalUrl https://mail.myDomain.org/Microsoft-Server-Activesync New-ActiveSyncVirtualDirectory : A parameter cannot be found that matches parameter name 'Server'. --------------------------------------------------------------- Why not? The server name is from the output of Get-ActiveSyncVirtualDirectory. I'm using this as a source: http://technet.microsoft.com/en-us/library/aa997160(EXCHG.80).aspx I notice that they do not use https: (no S) but I do not think that is the problem. And yes, I have just deleted the Virtual Directory and am trying to recreate it. Exchange 2007 SP2 on Windows 2008 SP2
November 4th, 2010 3:52pm

Have you tried it without the -server parameter? In the Exchange 2010 version the examples do not have the -server parameter. As long as you are running it on the correct server it should work. Simon.Simon Butler, Exchange MVP Blog | Exchange Resources
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2010 8:37pm

I tried it without the -server parameter (just with the name of the server, since you can do that with positional (?) parameters in PS) and that did not work. But now, I tried it without the -server parameter AND without the value (Name of My Server) and the Virtual Directory was recreated just fine. Everything is the same though, except for things like the GUID and WhenCreated and WhenChanged parameters. I am going to paste the current values below, so if anyone sees anything wrong they are welcome to point it out: Any munging? "MyDomain" replaces my real domain name, "MS1" replaces the name of the mail server, DC1 replaces name of originating domain controller. Everything else is copy and paste. [PS] C:\>Get-ActiveSyncVirtualDirectory | fl MobileClientFlags : BadItemReportingEnabled MobileClientCertificateProvisioningEnabled : False BadItemReportingEnabled : True MobileClientCertificateAuthorityURL : MobileClientCertTemplateName : ActiveSyncServer : https://mail.MyDomain.org/Microsoft-Server-Activesync RemoteDocumentsActionForUnknownServers : Allow RemoteDocumentsAllowedServers : {} RemoteDocumentsBlockedServers : {} RemoteDocumentsInternalDomainSuffixList : {} MetabasePath : IIS://MS1.MyDomain.loc/W3SVC/1/ROOT/Microsoft-Server-ActiveSync BasicAuthEnabled : True WindowsAuthEnabled : False CompressionEnabled : True ClientCertAuth : Ignore WebsiteName : Default Web Site WebSiteSSLEnabled : True VirtualDirectoryName : Microsoft-Server-ActiveSync Path : Server : MS1 InternalUrl : https://ms1.MyDomain.loc/Microsoft-Server-ActiveSync InternalAuthenticationMethods : {} ExternalUrl : https://mail.MyDomain.org/Microsoft-Server-Activesync ExternalAuthenticationMethods : {} AdminDisplayName : ExchangeVersion : 0.1 (8.0.535.0) Name : Microsoft-Server-ActiveSync (Default Web Site) DistinguishedName : CN=Microsoft-Server-ActiveSync (Default Web Site),CN=HTTP,CN=Protocols,CN= MS1,CN=Servers,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=A dministrative Groups,CN=ahns,CN=Microsoft Exchange,CN=Services,CN=Configur ation,DC=MyDomain,DC=loc Identity : MS1\Microsoft-Server-ActiveSync (Default Web Site) Guid : 8561629a-fd19-49e7-98a2-a442337525f1 ObjectCategory : MyDomain.loc/Configuration/Schema/ms-Exch-Mobile-Virtual-Directory ObjectClass : {top, msExchVirtualDirectory, msExchMobileVirtualDirectory} WhenChanged : 11/5/2010 9:44:33 AM WhenCreated : 11/5/2010 9:44:33 AM OriginatingServer : DC1.MyDomain.loc IsValid : True
November 5th, 2010 10:03am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics