[玩转系统] 在 Exchange Server 中重新创建虚拟目录
作者:精品下载站 日期:2024-12-14 18:23:28 浏览:14 分类:玩电脑
在 Exchange Server 中重新创建虚拟目录
今天的文章将展示如何在 Exchange Server 中重新创建虚拟目录。安装 Exchange Server 并查看 IIS 管理器后,我们可以看到配置了两个站点。这是默认网站和Exchange 后端。如果出现问题并且您想重置 Exchange Server 中的虚拟目录,那么您来对地方了。阅读有关如何在 Exchange Server 中重新创建虚拟目录的更多信息。
查找和管理 Exchange Server 中的虚拟目录
要查找和管理虚拟目录,您可以使用:
IIS管理器
交换管理外壳 (EMS)
Exchange 管理中心 (EAC)
为什么要重新创建 Exchange 虚拟目录
有时你必须从头开始,这可以解决大多数问题。例如:
权限问题
黑屏
丢失文件
连接问题
页面错误
重新创建 Exchange 虚拟目录默认网站
启动Internet 信息服务(IIS) 6.0 管理器。 Exchange Server 安装会创建两个网站:
默认网站
交换后端
要在 IIS 中重新创建虚拟目录,我们将使用 PowerShell。我们将:
获取虚拟目录
删除虚拟目录
创建虚拟目录
虚拟目录按字母顺序列出:
ActiveSyncVirtualDirectory微软服务器ActiveSync
AutodiscoverVirtualDirectory自动发现
EcpVirtualDirectoryECP
MapiVirtualDirectory马皮
OABVirtualDirectoryOAB
OwaVirtualDirectory奥瓦
PowerShellVirtualDirectory电源外壳
WebServicesVirtualDirectory环境预警系统
在我们的示例中,我们将重置 Exchange Server EX01-2016 上的虚拟目录。内部和外部 URL 为 https://mail.exoip.com。我们建议将内部和外部 URL 配置为通用命名空间。
了解更多:Exchange 命名空间设计和规划 »
重新创建 ActiveSyncVirtualDirectory
以管理员身份运行 Exchange 命令行管理程序。重新创建 Microsoft-Server-ActiveSync 虚拟目录。
[PS] C:\>Get-ActiveSyncVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, Identity, InternalUrl, ExternalUrl
Server : EX01-2016
Name : Microsoft-Server-ActiveSync (Default Web Site)
Identity : EX01-2016\Microsoft-Server-ActiveSync (Default Web Site)
InternalUrl : https://mail.exoip.com/Microsoft-Server-ActiveSync
ExternalUrl : https://mail.exoip.com/Microsoft-Server-ActiveSync
[PS] C:\>Remove-ActiveSyncVirtualDirectory -Identity "EX01-2016\Microsoft-Server-ActiveSync (Default Web Site)" -Confirm:$false
[PS] C:\>New-ActiveSyncVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/Microsoft-Server-ActiveSync" -ExternalUrl "https://mail.exoip.com/Microsoft-Server-ActiveSync"
Name Server InternalUrl
---- ------ -----------
Microsoft-Server-ActiveSync (Default Web Site) EX01-2016 https://mail.exoip.com/Microsoft-Server-ActiveSync
注意:创建 Exchange 虚拟目录时是否遇到错误?阅读文章创建 IIS 虚拟目录时出错。
重新创建自动发现虚拟目录
重新创建自动发现虚拟目录。
[PS] C:\>Get-AutodiscoverVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, Identity
Server : EX01-2016
Name : Autodiscover (Default Web Site)
Identity : EX01-2016\Autodiscover (Default Web Site)
[PS] C:\>Remove-AutodiscoverVirtualDirectory -Identity "EX01-2016\Autodiscover (Default Web Site)" -Confirm:$false
[PS] C:\>New-AutodiscoverVirtualDirectory -Server "EX01-2016" -BasicAuthentication $true -WindowsAuthentication $true
Name Server InternalUrl
---- ------ -----------
Autodiscover (Default Web Site) EX01-2016
[PS] C:\>Set-ClientAccessServer -Identity "EX01-2016" -AutodiscoverServiceInternalUri https://autodiscover.exoip.com/Autodiscover/Autodiscover.xml
了解有关 Exchange Server 中自动发现的更多信息:
使用 PowerShell 在 Exchange 中配置自动发现 URL
使用 PowerShell 在 Exchange 中查找自动发现 URL
重新创建 EcpVirtualDirectory
重新创建ecp虚拟目录。
[PS] C:\>Get-EcpVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity
Server : EX01-2016
Name : ecp (Default Web Site)
InternalUrl : https://mail.exoip.com/ecp
ExternalUrl : https://mail.exoip.com/ecp
Identity : EX01-2016\ecp (Default Web Site)
[PS] C:\>Remove-EcpVirtualDirectory -Identity "EX01-2016\ecp (Default Web Site)" -Confirm:$false
[PS] C:\>New-EcpVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/ecp" -ExternalUrl "https://mail.exoip.com/ecp"
Name Server
---- ------
ecp (Default Web Site) EX01-2016
重新创建 MapiVirtualDirectory
重新创建mapi虚拟目录。
[PS] C:\>Get-MapiVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity
Server : EX01-2016
Name : mapi (Default Web Site)
InternalUrl : https://mail.exoip.com/mapi
ExternalUrl : https://mail.exoip.com/mapi
Identity : EX01-2016\mapi (Default Web Site)
[PS] C:\>Remove-MapiVirtualDirectory -Identity "EX01-2016\mapi (Default Web Site)" -Confirm:$false
[PS] C:\>New-MapiVirtualDirectory -Server "EX01-2016" -InternalUrl https://mail.exoip.com/mapi -ExternalUrl https://mail.exoip.com/mapi -IISAuthenticationMethods Ntlm, OAuth, Negotiate
Name Server InternalUrl ExternalUrl
---- ------ ----------- -----------
mapi (Default Web Site) EX01-2016 https://mail.exoip.com/mapi https://mail.exoip.com/mapi
重新创建 OAB 虚拟目录
重新创建OAB虚拟目录。
[PS] C:\>Get-OabVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity
Server : EX01-2016
Name : OAB (Default Web Site)
InternalUrl : https://mail.exoip.com/OAB
ExternalUrl : https://mail.exoip.com/OAB
Identity : EX01-2016\OAB (Default Web Site)
[PS] C:\>Remove-OabVirtualDirectory -Identity "EX01-2016\OAB (Default Web Site)" -Confirm:$false -Force
[PS] C:\>New-OabVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/OAB" -ExternalUrl "https://mail.exoip.com/OAB"
Server Name Internal Url External Url
------ ---- ------------ ------------
EX01-2016 OAB (Default Web Site) https://mail.exoip.com/OAB https://mail.exoip.com/OAB
重新创建 OwaVirtualDirectory
重新创建 owa 虚拟目录。
[PS] C:\>Get-OwaVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity
Server : EX01-2016
Name : owa (Default Web Site)
InternalUrl : https://mail.exoip.com/owa
ExternalUrl : https://mail.exoip.com/owa
Identity : EX01-2016\owa (Default Web Site)
[PS] C:\>Remove-OwaVirtualDirectory -Identity "EX01-2016\owa (Default Web Site)" -Confirm:$false
[PS] C:\>New-OwaVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/owa" -ExternalUrl "https://mail.exoip.com/owa"
Name Server OwaVersion
---- ------ ----------
owa (Default Web Site) EX01-2016 Exchange2013
重新创建 PowerShell 虚拟目录
重新创建 PowerShell 虚拟目录。
您必须打开 PowerShell 或 PowerShell ISE 并运行以下 cmdlet。这是因为如果您处于会话 (Exchange Management Shell) 中,则无法重新创建 PowerShell 虚拟目录。第一个 cmdlet 将加载 Microsoft Exchange Management Powershell 管理单元。
PS C:\> Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn
PS C:\> Get-PowerShellVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, Externalurl, Identity
Server : EX01-2016
Name : Powershell (Default Web Site)
InternalUrl : https://mail.exoip.com/PowerShell
ExternalUrl : https://mail.exoip.com/PowerShell
Identity : EX01-2016\Powershell (Default Web Site)
PS C:\> Remove-PowerShellVirtualDirectory -Identity "EX01-2016\PowerShell (Default Web Site)" -Confirm:$false
PS C:\> New-PowerShellVirtualDirectory -Server "EX01-2016" -Name Powershell -InternalUrl https://mail.exoip.com/PowerShell -ExternalUrl https://mail.exoip.com/PowerShell -RequireSSL:$false
Name Server
---- ------
Powershell (Default Web Site) EX01-2016
重新创建 WebServicesVirtualDirectory
重新创建 EWS 虚拟目录。
[PS] C:\>Get-WebServicesVirtualDirectory -Server "EX01-2016" | Format-List Server, Name, InternalUrl, ExternalUrl, Identity
Server : EX01-2016
Name : EWS (Default Web Site)
InternalUrl : https://mail.exoip.com/EWS/Exchange.asmx
ExternalUrl : https://mail.exoip.com/EWS/Exchange.asmx
Identity : EX01-2016\EWS (Default Web Site)
[PS] C:\>Remove-WebServicesVirtualDirectory -Identity "EX01-2016\EWS (Default Web Site)" -Confirm:$false -Force
WARNING: Outlook Web App won't function correctly if you remove the Exchange Web Services virtual directory "EX01-2016\EWS (Default Web Site)". To disable Exchange Web Services without blocking access to Outlook Web
App, you can use "Set-CASMailbox -Identity <user> -EwsEnabled:$false" or "Set-OrganizationConfig -Identity <org> -EwsEnabled:$false".
[[PS] C:\>New-WebServicesVirtualDirectory -Server "EX01-2016" -InternalUrl "https://mail.exoip.com/EWS/Exchange.asmx" -ExternalUrl "https://mail.exoip.com/EWS/Exchange.asmx"
Name Server InternalUrl
---- ------ -----------
EWS (Default Web Site) EX01-2016 https://mail.exoip.com/EWS/Exchange.asmx
重新启动 IIS 或重新启动 Exchange Server。
验证 Exchange 管理中心中的虚拟目录
启动您喜欢的浏览器并登录到 Exchange Server 管理中心 (EAC)。本地主机链接是https://localhost/ecp。接下来,导航到服务器 > 虚拟目录,然后选择您在其上重新创建虚拟目录的服务器。
Exchange 虚拟目录已重新创建并成功显示。对你有用吗?
继续阅读:在 Exchange Server 中重新创建仲裁邮箱 »
结论
您学习了如何在 Exchange Server 中重新创建虚拟目录。我们确实使用 PowerShell 重置了 Exchange 虚拟目录。这些 cmdlet 会获取虚拟目录、删除虚拟目录,最后创建虚拟目录。最好检查 Exchange 管理中心中的虚拟目录以验证它们是否已创建。
您喜欢这篇文章吗?您可能还喜欢在 Exchange Server 中重新创建审核日志邮箱。不要忘记关注我们并分享这篇文章。
猜你还喜欢
- 03-30 [玩转系统] 如何用批处理实现关机,注销,重启和锁定计算机
- 02-14 [系统故障] Win10下报错:该文件没有与之关联的应用来执行该操作
- 01-07 [系统问题] Win10--解决锁屏后会断网的问题
- 01-02 [系统技巧] Windows系统如何关闭防火墙保姆式教程,超详细
- 12-15 [玩转系统] 如何在 Windows 10 和 11 上允许多个 RDP 会话
- 12-15 [玩转系统] 查找 Exchange/Microsoft 365 中不活动(未使用)的通讯组列表
- 12-15 [玩转系统] 如何在 Windows 上安装远程服务器管理工具 (RSAT)
- 12-15 [玩转系统] 如何在 Windows 上重置组策略设置
- 12-15 [玩转系统] 如何获取计算机上的本地管理员列表?
- 12-15 [玩转系统] 在 Visual Studio Code 中连接到 MS SQL Server 数据库
- 12-15 [玩转系统] 如何降级 Windows Server 版本或许可证
- 12-15 [玩转系统] 如何允许非管理员用户在 Windows 中启动/停止服务
取消回复欢迎 你 发表评论:
- 精品推荐!
-
- 最新文章
- 热门文章
- 热评文章
[影视] 黑道中人 Alto Knights(2025)剧情 犯罪 历史 电影
[古装剧] [七侠五义][全75集][WEB-MP4/76G][国语无字][1080P][焦恩俊经典]
[实用软件] 虚拟手机号 电话 验证码 注册
[电视剧] 安眠书店/你 第五季 You Season 5 (2025) 【全10集】
[电视剧] 棋士(2025) 4K 1080P【全22集】悬疑 犯罪 王宝强 陈明昊
[软件合集] 25年6月5日 精选软件22个
[软件合集] 25年6月4日 精选软件36个
[短剧] 2025年06月04日 精选+付费短剧推荐33部
[短剧] 2025年06月03日 精选+付费短剧推荐25部
[软件合集] 25年6月3日 精选软件44个
[剧集] [央视][笑傲江湖][2001][DVD-RMVB][高清][40集全]李亚鹏、许晴、苗乙乙
[电视剧] 欢乐颂.5部全 (2016-2024)
[电视剧] [突围] [45集全] [WEB-MP4/每集1.5GB] [国语/内嵌中文字幕] [4K-2160P] [无水印]
[影视] 【稀有资源】香港老片 艺坛照妖镜之96应召名册 (1996)
[剧集] 神经风云(2023)(完结).4K
[剧集] [BT] [TVB] [黑夜彩虹(2003)] [全21集] [粤语中字] [TV-RMVB]
[实用软件] 虚拟手机号 电话 验证码 注册
[资源] B站充电视频合集,包含多位重量级up主,全是大佬真金白银买来的~【99GB】
[影视] 内地绝版高清录像带 [mpg]
[书籍] 古今奇书禁书三教九流资料大合集 猎奇必备珍藏资源PDF版 1.14G
[电视剧] [突围] [45集全] [WEB-MP4/每集1.5GB] [国语/内嵌中文字幕] [4K-2160P] [无水印]
[剧集] [央视][笑傲江湖][2001][DVD-RMVB][高清][40集全]李亚鹏、许晴、苗乙乙
[电影] 美国队长4 4K原盘REMUX 杜比视界 内封简繁英双语字幕 49G
[电影] 死神来了(1-6)大合集!
[软件合集] 25年05月13日 精选软件16个
[精品软件] 25年05月15日 精选软件18个
[绝版资源] 南与北 第1-2季 合集 North and South (1985) /美国/豆瓣: 8.8[1080P][中文字幕]
[软件] 25年05月14日 精选软件57个
[短剧] 2025年05月14日 精选+付费短剧推荐39部
[短剧] 2025年05月15日 精选+付费短剧推荐36部
- 最新评论
-
- 热门tag